summaryrefslogtreecommitdiffstats
path: root/src/client/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/openai.rs
parent399ed3337f1c4edaab39a534b63cc9d00c09dd07 (diff)
downloadaichat-81624f7267ba20799a3bbf779abfe41df30d349c.tar.gz
refactor: rename Model.llm_name to name (#216)
Diffstat (limited to 'src/client/openai.rs')
-rw-r--r--src/client/openai.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/openai.rs b/src/client/openai.rs
index f1243f0..7c10a4d 100644
--- a/src/client/openai.rs
+++ b/src/client/openai.rs
@@ -59,7 +59,7 @@ impl OpenAIClient {
fn request_builder(&self, client: &ReqwestClient, data: SendData) -> Result<RequestBuilder> {
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 env_prefix = Self::name(&self.config).to_uppercase();
let api_base = env::var(format!("{env_prefix}_API_BASE"))