Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/caci/src/analyzer/ai-recommender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@

return new ChatOpenAI({
apiKey,
model: 'anthropic/claude-3.5-sonnet',
model: 'qwen/qwen3-coder:free',
temperature: 0,
maxTokens: 2000,
configuration: {
baseURL: 'https://openrouter.ai/api/v1',
},
Expand Down Expand Up @@ -75,7 +74,7 @@
/**
* Calculate core usage score for a component
*/
function getCoreUsageScore(name: string, _content: string, _description: string): number {

Check warning on line 77 in packages/caci/src/analyzer/ai-recommender.ts

View workflow job for this annotation

GitHub Actions / Lint Check

Function 'getCoreUsageScore' has a complexity of 16. Maximum allowed is 10
let score = 30; // Conservative base score

// Universal high-usage patterns
Expand Down Expand Up @@ -173,7 +172,7 @@
* @param componentsData Available components
* @returns Formatted prompt for the AI model
*/
function generatePrompt(

Check warning on line 175 in packages/caci/src/analyzer/ai-recommender.ts

View workflow job for this annotation

GitHub Actions / Lint Check

Function 'generatePrompt' has too many lines (112). Maximum allowed is 50
userRequirements: UserRequirements,
componentsData: ComponentsData
): string {
Expand Down Expand Up @@ -289,7 +288,7 @@
/**
* Provides default component recommendations when no API key is available
*/
function getDefaultRecommendations(

Check warning on line 291 in packages/caci/src/analyzer/ai-recommender.ts

View workflow job for this annotation

GitHub Actions / Lint Check

Function 'getDefaultRecommendations' has too many lines (58). Maximum allowed is 50
componentsData: ComponentsData,
userRequirements?: UserRequirements
): Recommendation {
Expand All @@ -299,7 +298,7 @@

// Adjust count based on experience level
let agentCount = 10,
commandCount = 10,

Check warning on line 301 in packages/caci/src/analyzer/ai-recommender.ts

View workflow job for this annotation

GitHub Actions / Lint Check

File has too many lines (456). Maximum allowed is 300
hookCount = 8,
mcpCount = 8;

Expand Down
Loading