mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-05-02 17:07:13 +00:00
add exp model to v1Beta (#2082)
This commit is contained in:
parent
01e85b0ffc
commit
f06ef6180d
1 changed files with 8 additions and 6 deletions
|
@ -17,12 +17,14 @@ class GeminiLLM {
|
|||
this.gemini = genAI.getGenerativeModel(
|
||||
{ model: this.model },
|
||||
{
|
||||
// Gemini-1.5-pro and Gemini-1.5-flash are only available on the v1beta API.
|
||||
apiVersion:
|
||||
this.model === "gemini-1.5-pro-latest" ||
|
||||
this.model === "gemini-1.5-flash-latest"
|
||||
? "v1beta"
|
||||
: "v1",
|
||||
// Gemini-1.5-pro-* and Gemini-1.5-flash are only available on the v1beta API.
|
||||
apiVersion: [
|
||||
"gemini-1.5-pro-latest",
|
||||
"gemini-1.5-flash-latest",
|
||||
"gemini-1.5-pro-exp-0801",
|
||||
].includes(this.model)
|
||||
? "v1beta"
|
||||
: "v1",
|
||||
}
|
||||
);
|
||||
this.limits = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue