Skip to content
This repository was archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
[Cherry Pick] [Head Repo] fix: fix the method to detect vision model (#…
Browse files Browse the repository at this point in the history
…295)

Co-authored-by: fred-bf <[email protected]>
  • Loading branch information
H0llyW00dzZ and fred-bf authored Feb 28, 2024
1 parent a6ab683 commit f62ab9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ export function getMessageImages(message: RequestMessage): string[] {

export function isVisionModel(model: string) {
return (
model.startsWith("gpt-4-vision") ||
model.startsWith("gemini-pro-vision") ||
!DEFAULT_MODELS.find((m) => m.name == model)
// model.startsWith("gpt-4-vision") ||
// model.startsWith("gemini-pro-vision") ||
model.includes("vision")
);
}

0 comments on commit f62ab9f

Please sign in to comment.