diff options
| author | sigoden <sigoden@gmail.com> | 2024-11-07 17:19:54 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-07 17:19:54 +0800 |
| commit | 58dde85033cff3f7b08fb7ae997f9e124ad52955 (patch) | |
| tree | cdc3180dfe3ece23e34056dc08f2852b0a0b4420 /src/client | |
| parent | 45249e433520447a2f4a66ce7c7ece6e1a6de139 (diff) | |
| download | aichat-58dde85033cff3f7b08fb7ae997f9e124ad52955.tar.gz | |
feat: add hunyuan client (#980)
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs index 883d5f7..2430d94 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -35,7 +35,7 @@ register_client!( (ernie, "ernie", ErnieConfig, ErnieClient), ); -pub const OPENAI_COMPATIBLE_PLATFORMS: [(&str, &str); 21] = [ +pub const OPENAI_COMPATIBLE_PLATFORMS: [(&str, &str); 22] = [ ("ai21", "https://api.ai21.com/studio/v1"), ("cloudflare", ""), ("deepinfra", "https://api.deepinfra.com/v1/openai"), @@ -44,6 +44,7 @@ pub const OPENAI_COMPATIBLE_PLATFORMS: [(&str, &str); 21] = [ ("github", "https://models.inference.ai.azure.com"), ("groq", "https://api.groq.com/openai/v1"), ("huggingface", "https://api-inference.huggingface.co/v1"), + ("hunyuan", "https://api.hunyuan.cloud.tencent.com/v1"), ("lingyiwanwu", "https://api.lingyiwanwu.com/v1"), ("mistral", "https://api.mistral.ai/v1"), ("moonshot", "https://api.moonshot.cn/v1"), |
