Repository navigation
Conversation
- One exhaustive createProvider() factory; unknown provider types throw instead of silently routing to OpenAI. - Test-connection probe moved onto the provider (probe()), so each provider verifies with its own wire format. - Azure AI Foundry: OpenAI subclass, /openai/v1 URL normalization, api-key + Bearer headers. - AWS Bedrock: OpenAI subclass for bedrock-runtime /openai/v1; tolerates a missing /models. - Cursor: official Cloud Agents API (POST /v1/agents, poll run, read run.result, DELETE agent); discover parses items[]. - UI: new dropdown entries with default base URL, placeholders, hints. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Drop Azure AI Foundry and AWS Bedrock from this PR (follow-up issue). - Test connection: Cursor checks the model id against GET /v1/models and suggests the id when a display name was typed. - Key check (GET /v1/me) uses the request timeout instead of 5 s. - Model field lists the provider's models (type to filter, pick writes id). - More provider tests from mutation testing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Adds Cursor as an LLM provider and a model list in the Add model form.
What changes
POST /v1/agents,GET /v1/agents/{id}/runs/{runId},DELETE /v1/agents/{id}.GET /v1/me) and that the model id is inGET /v1/models. It never starts an agent. If you type a display name ("Grok 4.6"), the error tells you the id (grok-4.6).LLM_PROVIDER_TYPES.Limits
temperatureand max tokens are ignored. Token counts are estimated. At most 5 screenshots.Screenshots
Local run on a demo report (fake data), model
grok-4.6through Cursor.Model picker: type to filter, pick, the field gets the id.
How to test
pnpm test:backend. Provider tests mockfetch; no key needed.crsr_…key, pick a model, Test connection, Enable, Make primary.Checked locally with a real key on two reports: 5 test analyses, a report summary and a project summary all completed, and no agents were left behind.
Azure AI Foundry and AWS Bedrock moved to #224.