summaryrefslogtreecommitdiffstats
path: root/src/client/palm.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/palm.rs
parent9a8b302432a3f9bfa1e467dde027fc92dacce3e2 (diff)
downloadaichat-d40f104f667073f320a01d9c1a91aa88225ccaeb.tar.gz
feat: allow the use of an unlisted model (#219)
Diffstat (limited to 'src/client/palm.rs')
-rw-r--r--src/client/palm.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/palm.rs b/src/client/palm.rs
index 45496fa..dd063da 100644
--- a/src/client/palm.rs
+++ b/src/client/palm.rs
@@ -70,6 +70,8 @@ impl PaLMClient {
let url = format!("{API_BASE}{}:generateMessage?key={}", model, api_key);
+ debug!("PaLM Request: {url} {body}");
+
let builder = client.post(url).json(&body);
Ok(builder)