feat: custom provider support, max tool turns, auto 429 retries, and … - #617
Open
harshvishwakarma0 wants to merge 1 commit into
Open
feat: custom provider support, max tool turns, auto 429 retries, and …#617harshvishwakarma0 wants to merge 1 commit into
harshvishwakarma0 wants to merge 1 commit into
Conversation
…retry data preservation
Owner
|
@cursoragent review |
|
You need to increase your spend limit or enable usage-based billing to run background agents. Go to Cursor |
Owner
|
@claude review |
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.
Summary of Changes
This PR introduces comprehensive support for custom OpenAI-compatible providers (Ollama, LM Studio, Groq, Bynara, OpenRouter) and key user experience improvements around agent tool turn limits and error/retry resilience.
Key Features & Fixes:
Custom OpenAI-Compatible Provider Support:
/api/custom-providers/models), and local storage persistence.CustomOpenAIProviderSessionsupporting Chat Completions streaming (client.chat.completions.create) and function calling serialization.Customizable Max Agent Tool Turns:
maxToolTurnsparameter through WebSocket pipeline andAgentEngine.HTTP 400 Request Body & Rate Limit (429) Resilience:
content: nullserialization issue in custom assistant messages that caused HTTP 400 errors on strict OpenAI proxies like Bynara router.CustomOpenAIProviderSession.Retry Data & Code Preservation:
onVariantErrorandregenerate()inApp.tsxso that partially-generated HTML code is preserved in version history when a run stops or errors out.Testing:
poetry run pytest): All tests passing cleanly.pnpm exec tsc --noEmit): 0 errors.