diff options
| author | sigoden <sigoden@gmail.com> | 2024-09-02 08:23:21 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-02 08:23:21 +0800 |
| commit | 2cba09c064b366ad91c7eda3acbc2030215a1842 (patch) | |
| tree | 467d550c12b2cab8172da7cc3af01903a5b5477a /src/client/mod.rs | |
| parent | 6462a587428c38c17cbb6bce440cbf10c966eecc (diff) | |
| download | aichat-2cba09c064b366ad91c7eda3acbc2030215a1842.tar.gz | |
feat: migrate `cloudflare` client to `openai-compatible` (#821)
Diffstat (limited to 'src/client/mod.rs')
| -rw-r--r-- | src/client/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs index 8ab7c78..ecafd3c 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -33,13 +33,13 @@ register_client!( ), (vertexai, "vertexai", VertexAIConfig, VertexAIClient), (bedrock, "bedrock", BedrockConfig, BedrockClient), - (cloudflare, "cloudflare", CloudflareConfig, CloudflareClient), (replicate, "replicate", ReplicateConfig, ReplicateClient), (ernie, "ernie", ErnieConfig, ErnieClient), ); -pub const OPENAI_COMPATIBLE_PLATFORMS: [(&str, &str); 18] = [ +pub const OPENAI_COMPATIBLE_PLATFORMS: [(&str, &str); 19] = [ ("ai21", "https://api.ai21.com/studio/v1"), + ("cloudflare", ""), ("deepinfra", "https://api.deepinfra.com/v1/openai"), ("deepseek", "https://api.deepseek.com"), ("fireworks", "https://api.fireworks.ai/inference/v1"), |
