[go: up one dir, main page]

Module azure

Source
Expand description

Azure OpenAI API client and Rig integration

§Example

use rig::providers::azure;

let client = azure::Client::new("YOUR_API_KEY", "YOUR_API_VERSION", "YOUR_ENDPOINT");

let gpt4o = client.completion_model(azure::GPT_4O);

Structs§

Client
CompletionModel
EmbeddingData
EmbeddingModel
EmbeddingResponse
TranscriptionModel
Usage

Enums§

AzureOpenAIAuth

Constants§

GPT_4
gpt-4 completion model
GPT_4O
gpt-4o completion model
GPT_4O_MINI
gpt-4o-mini completion model
GPT_4O_REALTIME_PREVIEW
gpt-4o-realtime-preview completion model
GPT_4_32K
gpt-4-32k completion model
GPT_4_32K_0613
gpt-4-32k completion model
GPT_4_TURBO
gpt-4-turbo completion model
GPT_35_TURBO
gpt-3.5-turbo completion model
GPT_35_TURBO_16K
gpt-3.5-turbo-16k completion model
GPT_35_TURBO_INSTRUCT
gpt-3.5-turbo-instruct completion model
O1
o1 completion model
O1_MINI
o1-mini completion model
O1_PREVIEW
o1-preview completion model
TEXT_EMBEDDING_3_LARGE
text-embedding-3-large embedding model
TEXT_EMBEDDING_3_SMALL
text-embedding-3-small embedding model
TEXT_EMBEDDING_ADA_002
text-embedding-ada-002 embedding model