mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-14 06:40:50 +00:00
fix(ai): recognise Claude 5 and Fable models as vision-capable
The Anthropic vision check listed the Claude 3 and 4 families by prefix, so a key pinned to claude-sonnet-5, claude-opus-5 or a Fable model was told the provider cannot read images, and lab and document OCR refused the upload even though the model handles image and PDF blocks. Replace the per-release prefix list with a rule: any claude-<tier>-<major> slug from the 4 family upward, plus every claude-fable-* model, counts as vision-capable. Claude 3 handling is unchanged. The Settings preset list gains claude-sonnet-5 and claude-opus-5 alongside the existing entries.
This commit is contained in:
1 parent
a463206774
commit
7d93af9d09
4 files changed
+36
-9
No files matched your search
@@ -101,6 +101,8 @@ export const OPENAI_MODEL_PRESETS = [
|
||||
export const ANTHROPIC_MODEL_PRESETS = [
|
||||
"claude-sonnet-4-6",
|
||||
"claude-opus-4-7",
|
||||
"claude-sonnet-5",
|
||||
"claude-opus-5",
|
||||
"claude-haiku-4-5",
|
||||
"claude-3-5-sonnet-latest",
|
||||
] as const;
|
||||
|
||||
Reference in new issue
Block a user