page_type | languages | products | urlFragment | ||||
---|---|---|---|---|---|---|---|
sample |
|
|
ai-openai-java-samples |
Azure OpenAI Service samples are a set of self-contained Java programs that demonstrate interacting with Azure OpenAI service using the client library. Each sample focuses on a specific scenario and can be executed independently.
Key concepts are explained in detail here.
Getting started explained in detail here.
The following sections provide several code snippets covering some of the most common OpenAI service tasks, including:
Synchronous:
- Legacy Completions
- Chat Completions
- Embeddings
- Image Generation
- Audio Transcription
- Audio Translation
- Chat with Images
- Text to Speech
- Tool Calls
Asynchronous:
- Legacy Completions
- Chat Completions
- Embeddings
- Image Generation
- Audio Transcription
- Audio Translation
- Chat with Images
- Text to Speech
- Tool Calls
Cookbook:
- Batch operations
- Chat bot
- Chat bot With Key
- Chat with Bring Your Own Data
- File operations
- Function Call
- OpenAIProxy
- Streaming Chat
- Summarize Text
- Streaming Tool Call
Troubleshooting steps can be found here.
See Next steps.
This project welcomes contributions and suggestions. Find more contributing details here.