struct

Crig::Providers::Azure::Client

Inherits Crig::Client::CompletionClient < Struct < Value < Object

Constructors

from_env
Source
from_val(input : AzureOpenAIClientParams) : self
Source
new(auth : AzureOpenAIAuth, endpoint : String, api_version : String = DEFAULT_API_VERSION)
Source

Class methods

builder
Source

Instance methods

api_version
Source
audio_generation_model(model : String) : AudioGenerationModel
Source
auth
Source
chat_completion_path(deployment_id : String) : String
Source
completion_model(model : String) : CompletionModel
Source
embedding_model(model : String) : EmbeddingModel
Source
embedding_model_with_ndims(model : String, ndims : Int32) : EmbeddingModel
Source
endpoint
Source
image_generation_model(model : String) : ImageGenerationModel
Source
post_audio_generation(deployment_id : String, body : String, headers : Hash(String, String) = {} of String => String) : HTTP::Client::Response
Source
post_chat_completion(deployment_id : String, body : String, headers : Hash(String, String) = {} of String => String) : HTTP::Client::Response
Source
post_embedding(deployment_id : String, body : String) : HTTP::Client::Response
Source
post_image_generation(deployment_id : String, body : String) : HTTP::Client::Response
Source
post_json(path : String, body : String, headers : Hash(String, String) = {} of String => String) : HTTP::Client::Response
Source
post_transcription(deployment_id : String, body : String, content_type : String) : HTTP::Client::Response
Source
transcription_model(model : String) : TranscriptionModel
Source