diff options
| author | sigoden <sigoden@gmail.com> | 2024-04-10 07:44:36 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-10 07:44:36 +0800 |
| commit | 07605d892a4bcfb75f3c8daf873e180f424c335b (patch) | |
| tree | a919e18e2c582674f2541504ab078c06a1e81c13 /src/client/vertexai.rs | |
| parent | 26ad75c00583d5f36c44ce79083a7ba69c1201bf (diff) | |
| download | aichat-07605d892a4bcfb75f3c8daf873e180f424c335b.tar.gz | |
refactor: update gemini/vertexai models list (#395)
Diffstat (limited to 'src/client/vertexai.rs')
| -rw-r--r-- | src/client/vertexai.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client/vertexai.rs b/src/client/vertexai.rs index 3c663f4..1c1fd46 100644 --- a/src/client/vertexai.rs +++ b/src/client/vertexai.rs @@ -14,13 +14,11 @@ use serde::Deserialize; use serde_json::{json, Value}; use std::path::PathBuf; -const MODELS: [(&str, usize, &str); 5] = [ +const MODELS: [(&str, usize, &str); 3] = [ // https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models ("gemini-1.0-pro", 24568, "text"), ("gemini-1.0-pro-vision", 14336, "text,vision"), - ("gemini-1.0-ultra", 8192, "text"), - ("gemini-1.0-ultra-vision", 8192, "text,vision"), - ("gemini-1.5-pro", 1000000, "text"), + ("gemini-1.5-pro-preview-0409", 1000000, "text,vision"), ]; const TOKENS_COUNT_FACTORS: TokensCountFactors = (5, 2); |
