summaryrefslogtreecommitdiffstats
path: root/src/client/ernie.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-12-19 12:55:03 +0000
committersigoden <sigoden@gmail.com>2023-12-19 12:55:03 +0000
commit34d58b23693bbb561e43d89f4c1232f63973af0a (patch)
treefcb64186e748fba8a07abc995cca3b574fc5b06e /src/client/ernie.rs
parent6fb13359f474f575fa87924884d9f46a312b6d21 (diff)
downloadaichat-34d58b23693bbb561e43d89f4c1232f63973af0a.tar.gz
refactor: adjust order of ernie models
Diffstat (limited to 'src/client/ernie.rs')
-rw-r--r--src/client/ernie.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/ernie.rs b/src/client/ernie.rs
index 0844b39..d7e3a57 100644
--- a/src/client/ernie.rs
+++ b/src/client/ernie.rs
@@ -19,10 +19,10 @@ const API_BASE: &str = "https://aip.baidubce.com/rpc/2.0/ai_custom/v1";
const ACCESS_TOKEN_URL: &str = "https://aip.baidubce.com/oauth/2.0/token";
const MODELS: [(&str, &str); 4] = [
- ("ernie-bot-turbo", "/wenxinworkshop/chat/eb-instant"),
("ernie-bot", "/wenxinworkshop/chat/completions"),
- ("ernie-bot-8k", "/wenxinworkshop/chat/ernie_bot_8k"),
("ernie-bot-4", "/wenxinworkshop/chat/completions_pro"),
+ ("ernie-bot-8k", "/wenxinworkshop/chat/ernie_bot_8k"),
+ ("ernie-bot-turbo", "/wenxinworkshop/chat/eb-instant"),
];
static mut ACCESS_TOKEN: String = String::new(); // safe under linear operation