Skip to content

Conversation

artemkolyadin
Copy link

Problem

Currently, the /models endpoint returns only OpenAI models, which causes issues when iOS developers use gpt2giga with Xcode 26's AI assistant integration. When Xcode requests the model list and users select an OpenAI model (like gpt-4), subsequent /completions requests fail because GigaChat API doesn't recognize these model names.

Additionally, Xcode 26 sends requests to /models? (with a trailing question mark), which currently returns invalid_request_error due to strict path matching.

Solution

This PR adds real GigaChat v2 models to the models list and fixes the endpoint handling:

  • Added GigaChat v2 models: GigaChat-2, GigaChat-2-Max, GigaChat-2-Pro
  • Fixed /models endpoint: Now handles URLs with query parameters (e.g., /models?) for Xcode 26 compatibility

Currently, the /models endpoint returns only OpenAI models, which causes issues when iOS developers use gpt2giga with Xcode 26's AI assistant integration. When Xcode requests the model list and users select an OpenAI model (like gpt-4), subsequent /completions requests fail because GigaChat API doesn't recognize these model names.

Additionally, Xcode 26 sends requests to /models? (with a trailing question mark), which currently returns invalid_request_error due to strict path matching.

This PR adds real GigaChat v2 models to the models list and fixes the endpoint handling:

- Added GigaChat v2 models: GigaChat-2, GigaChat-2-Max, GigaChat-2-Pro
- Fixed /models endpoint: Now handles URLs with query parameters (e.g., /models?) for Xcode 26 compatibility
@artemkolyadin artemkolyadin force-pushed the feature/xcode-26-gigachat-models branch from d6c4ebd to f937ce0 Compare September 3, 2025 07:12
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.

1 participant