diff options
| author | sigoden <sigoden@gmail.com> | 2024-08-22 06:41:16 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-22 06:41:16 +0800 |
| commit | f1cbb3c006fdbf0815a33800b62b66eb52a55a5f (patch) | |
| tree | f8f8d6ef0a9bb8face3e984bbd07d8c8975abc15 /src/client/mod.rs | |
| parent | c0eae1c55c0d48ed1c6f9f6cb2d8990deb163b37 (diff) | |
| download | aichat-f1cbb3c006fdbf0815a33800b62b66eb52a55a5f.tar.gz | |
feat: support github client (#798)
Diffstat (limited to 'src/client/mod.rs')
| -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 80f526a..5a4a9ac 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -40,10 +40,11 @@ register_client!( (qianwen, "qianwen", QianwenConfig, QianwenClient), ); -pub const OPENAI_COMPATIBLE_PLATFORMS: [(&str, &str); 14] = [ +pub const OPENAI_COMPATIBLE_PLATFORMS: [(&str, &str); 15] = [ ("deepinfra", "https://api.deepinfra.com/v1/openai"), ("deepseek", "https://api.deepseek.com"), ("fireworks", "https://api.fireworks.ai/inference/v1"), + ("github", "https://models.inference.ai.azure.com"), ("groq", "https://api.groq.com/openai/v1"), ("jina", "https://api.jina.ai/v1"), ("lingyiwanwu", "https://api.lingyiwanwu.com/v1"), |
