File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ Creates a new `Chat` object with default settings:
156
156
- `history` is set to `true`
157
157
"""
158
158
@kwdef struct Chat
159
- service:: Type{<:ServiceEndpoint} = OPENAIServiceEndpoint # AZUREServiceEndpoint #OPENAIServiceEndpoint
159
+ service:: Type{<:ServiceEndpoint} = AZUREServiceEndpoint # AZUREServiceEndpoint #OPENAIServiceEndpoint
160
160
model:: String = " gpt-4o"
161
161
messages:: Conversation = Message[]
162
162
history:: Bool = true
Original file line number Diff line number Diff line change 1
1
get_url (params:: Chat ) = get_url (params. service, params. model)
2
- get_url (emb:: Embeddings ) = get_url (emb. model)
2
+ get_url (emb:: Embeddings ) = get_url (OPENAIServiceEndpoint, emb. model)
3
3
get_url (:: Type{OPENAIServiceEndpoint} , model:: String ) = OPENAI_BASE_URL * _MODEL_ENDPOINTS_OPENAI[model]
4
4
get_url (:: Type{OPENAIServiceEndpoint} , emb:: Embeddings ) = get_url (emb)
5
- get_url (:: Type{AZUREServiceEndpoint} , model:: String ) = ENV [AZURE_OPENAI_BASE_URL] * " /openai/deployments/ " * _MODEL_ENDPOINTS_AZURE_OPENAI[model] * " /chat/completions?api-version=$(ENV [AZURE_OPENAI_API_VERSION]) "
5
+ get_url (:: Type{AZUREServiceEndpoint} , model:: String ) = ENV [AZURE_OPENAI_BASE_URL] * _MODEL_ENDPOINTS_AZURE_OPENAI[model] * " /chat/completions?api-version=$(ENV [AZURE_OPENAI_API_VERSION]) "
6
6
7
7
8
8
function auth_header (:: Type{OPENAIServiceEndpoint} )
You can’t perform that action at this time.
0 commit comments