summaryrefslogtreecommitdiffstats
path: root/src/client/azure_openai.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-11-07 09:55:06 +0800
committerGitHub <noreply@github.com>2023-11-07 09:55:06 +0800
commit81624f7267ba20799a3bbf779abfe41df30d349c (patch)
tree5484737923446cf8bffc2d6e9d0b80062ce421c9 /src/client/azure_openai.rs
parent399ed3337f1c4edaab39a534b63cc9d00c09dd07 (diff)
downloadaichat-81624f7267ba20799a3bbf779abfe41df30d349c.tar.gz
refactor: rename Model.llm_name to name (#216)
Diffstat (limited to 'src/client/azure_openai.rs')
-rw-r--r--src/client/azure_openai.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/azure_openai.rs b/src/client/azure_openai.rs
index 815413e..8fa3e10 100644
--- a/src/client/azure_openai.rs
+++ b/src/client/azure_openai.rs
@@ -59,11 +59,11 @@ impl AzureOpenAIClient {
let api_base = self.get_api_base()?;
let api_key = self.get_api_key()?;
- let body = openai_build_body(data, self.model.llm_name.clone());
+ let body = openai_build_body(data, self.model.name.clone());
let url = format!(
"{}/openai/deployments/{}/chat/completions?api-version=2023-05-15",
- &api_base, self.model.llm_name
+ &api_base, self.model.name
);
let builder = client.post(url).header("api-key", api_key).json(&body);