summaryrefslogtreecommitdiffstats
path: root/src/client/openai.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-11-07 11:54:56 +0800
committerGitHub <noreply@github.com>2023-11-07 11:54:56 +0800
commitd40f104f667073f320a01d9c1a91aa88225ccaeb (patch)
treedf915b72efb7051a53a95439c2d8cc4627921c8e /src/client/openai.rs
parent9a8b302432a3f9bfa1e467dde027fc92dacce3e2 (diff)
downloadaichat-d40f104f667073f320a01d9c1a91aa88225ccaeb.tar.gz
feat: allow the use of an unlisted model (#219)
Diffstat (limited to 'src/client/openai.rs')
-rw-r--r--src/client/openai.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/openai.rs b/src/client/openai.rs
index 6b5edab..06a5316 100644
--- a/src/client/openai.rs
+++ b/src/client/openai.rs
@@ -68,6 +68,8 @@ impl OpenAIClient {
let url = format!("{api_base}/chat/completions");
+ debug!("OpenAI Request: {url} {body}");
+
let mut builder = client.post(url).bearer_auth(api_key).json(&body);
if let Some(organization_id) = &self.config.organization_id {