Repository navigation
Fix OpenRouter strict parameter routing for runner sessions - #36
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Slack sessions now reach the model provider but fail with OpenRouter's "No endpoints found that can handle the requested parameters" error. The pinned SDK's OpenRouter serializer emits
store,prompt_cache_key, andmax_completion_tokens, while the selected Groq endpoint advertisesmax_tokensand no storage or prompt-cache-key support.Adapt the native OpenRouter request body to omit those OpenAI-specific fields and use
max_tokens. Preserve native streaming and tool parsing, usage reporting, the 2,048-token ceiling, the selected model, Groq-only routing, and strict parameter matching.The existing HTTP transport test now checks the serialized request on every turn and compaction call. It failed before this change and passes after it. Model deployment tests cover credential rotation, configuration immutability, and failure handling. Runner typecheck/build and
vp checkalso pass.Live OpenRouter acceptance remains pending deployment because the production credential is not available locally. No secret or environment-variable changes are needed.
Reference: OpenRouter provider selection, model endpoint metadata.