summaryrefslogtreecommitdiffstats
path: root/src/client/openai.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-09-01 10:05:53 +0800
committerGitHub <noreply@github.com>2024-09-01 10:05:53 +0800
commitef0810434cf60eeb33e8f61712c4023efe71876d (patch)
tree77450abe9dbe9bebd83172003f4710dc3883bcb4 /src/client/openai.rs
parent573e0d58b44cd0686c9e7405723e5cc3a5c5126f (diff)
downloadaichat-ef0810434cf60eeb33e8f61712c4023efe71876d.tar.gz
refactor: minor improvement (#818)
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 e47ad4c..902a215 100644
--- a/src/client/openai.rs
+++ b/src/client/openai.rs
@@ -249,7 +249,7 @@ pub fn openai_build_chat_completions_body(data: ChatCompletionsData, model: &Mod
})
]
- }).collect()
+ }).collect()
}
},
_ => vec![json!({ "role": role, "content": content })]