Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Aug 26, 2025

This PR updates the OpenRouter configuration to use a free model and removes token limitations as requested.

Changes Made

  • Model updated: Changed from anthropic/claude-3.5-sonnet to qwen/qwen3-coder:free
  • Token limit removed: Removed the maxTokens: 2000 parameter to allow unlimited token usage

File Modified

packages/caci/src/analyzer/ai-recommender.ts - Updated the initializeOpenRouterModel() function

Benefits

  • Uses a free model, reducing API costs
  • Removes token restrictions, allowing for longer AI responses
  • Maintains all existing functionality while switching to a cost-effective solution

Testing

  • All existing tests continue to pass (35/35)
  • Build completes successfully with no compilation errors
  • No breaking changes to the API or functionality

The changes are minimal and surgical, affecting only the specific configuration parameters requested while preserving all existing behavior.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: elad12390 <49613537+elad12390@users.noreply.github.com>
Copilot AI changed the title [WIP] Please change the openrouter model to qwen/qwen3-coder:free I want to make sure that we use a free model and please remote the max tokens, no max tokens is fine Change OpenRouter model to qwen/qwen3-coder:free and remove max tokens limit Aug 26, 2025
Copilot AI requested a review from elad12390 August 26, 2025 16:33
Copy link
Owner

@elad12390 elad12390 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@elad12390 elad12390 marked this pull request as ready for review August 26, 2025 16:34
@elad12390 elad12390 merged commit e69f50d into master Aug 26, 2025
12 of 26 checks passed
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