summaryrefslogtreecommitdiffstats
path: root/src/client/localai.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/localai.rs
parent399ed3337f1c4edaab39a534b63cc9d00c09dd07 (diff)
downloadaichat-81624f7267ba20799a3bbf779abfe41df30d349c.tar.gz
refactor: rename Model.llm_name to name (#216)
Diffstat (limited to 'src/client/localai.rs')
-rw-r--r--src/client/localai.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/localai.rs b/src/client/localai.rs
index eb4de65..ecb0e63 100644
--- a/src/client/localai.rs
+++ b/src/client/localai.rs
@@ -58,7 +58,7 @@ impl LocalAIClient {
fn request_builder(&self, client: &ReqwestClient, data: SendData) -> Result<RequestBuilder> {
let api_key = self.get_api_key().ok();
- let body = openai_build_body(data, self.model.llm_name.clone());
+ let body = openai_build_body(data, self.model.name.clone());
let chat_endpoint = self
.config