Skip to content

Allow document/pdf upload for Claude, GPT and Grok 4 models#2848

Merged
chrarnoldus merged 2 commits intomainfrom
christiaan/pdf
Apr 28, 2026
Merged

Allow document/pdf upload for Claude, GPT and Grok 4 models#2848
chrarnoldus merged 2 commits intomainfrom
christiaan/pdf

Conversation

@chrarnoldus
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread apps/web/src/lib/ai-gateway/models.ts Outdated
@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot Bot commented Apr 28, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (8 files)
  • apps/web/src/lib/ai-gateway/models.ts
  • apps/web/src/lib/ai-gateway/processUsage.ts
  • apps/web/src/lib/ai-gateway/providers/anthropic.constants.ts
  • apps/web/src/lib/ai-gateway/providers/anthropic.ts
  • apps/web/src/lib/ai-gateway/providers/fixOpenCodeDuplicateReasoning.ts
  • apps/web/src/lib/ai-gateway/providers/index.ts
  • apps/web/src/lib/ai-gateway/providers/model-prefix.test.ts
  • apps/web/src/lib/ai-gateway/providers/model-settings.ts

Reviewed by gpt-5.5-20260423 · 596,752 tokens

}

export function isPdfSupportingModel(model: string): boolean {
return isAnthropicModel(model) || isOpenAiModel(model) || isGrok4Model(model);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does every OpenAI model support pdf?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably, I guess it's an API feature

@chrarnoldus chrarnoldus merged commit 0e7fd0e into main Apr 28, 2026
15 of 16 checks passed
@chrarnoldus chrarnoldus deleted the christiaan/pdf branch April 28, 2026 12:06
@chrarnoldus chrarnoldus self-assigned this Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants