Skip to content

Conversation

@longseespace
Copy link
Contributor

Overview

The model listing call fails when for OpenRouter. Reason: OpenRouter doesn't include these fields in their response.

This PR makes ModelObject's object and ownedBy fields optional.

A long-term solution is probably asking OpenRouter to fix their response.

@jamesrochabrun jamesrochabrun merged commit c71f40c into jamesrochabrun:main Aug 10, 2025
3 checks passed
yujinqiu pushed a commit to yujinqiu/SwiftOpenAI that referenced this pull request Aug 12, 2025
…del-listing

Fix model listing issues for OpenRouter
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