diff options
| author | sigoden <sigoden@gmail.com> | 2023-11-07 09:55:06 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-07 09:55:06 +0800 |
| commit | 81624f7267ba20799a3bbf779abfe41df30d349c (patch) | |
| tree | 5484737923446cf8bffc2d6e9d0b80062ce421c9 /src/client/azure_openai.rs | |
| parent | 399ed3337f1c4edaab39a534b63cc9d00c09dd07 (diff) | |
| download | aichat-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.rs | 4 |
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); |
