-
Notifications
You must be signed in to change notification settings - Fork 1
chore: remove unused Claude Code provider configuration #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| /* eslint-disable */ | ||
| /** | ||
| * Generated `api` utility. | ||
| * | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,5 +1,4 @@ | ||||||||||
| import { Agent } from '@mastra/core/agent' | ||||||||||
| import { google3 } from '../config/google' | ||||||||||
| import { log } from '../config/logger' | ||||||||||
| import { pgMemory } from '../config/pg-storage' | ||||||||||
| import { | ||||||||||
|
|
@@ -16,12 +15,13 @@ import type { GoogleGenerativeAIProviderOptions } from '@ai-sdk/google' | |||||||||
| import { InternalSpans } from '@mastra/core/observability' | ||||||||||
| import { TokenLimiterProcessor } from '@mastra/core/processors' | ||||||||||
| import type { RequestContext } from '@mastra/core/request-context' | ||||||||||
| import { | ||||||||||
| createCompletenessScorer, | ||||||||||
| createTextualDifferenceScorer, | ||||||||||
| createToneScorer, | ||||||||||
| } from '../evals/scorers/prebuilt' | ||||||||||
| //import { | ||||||||||
| // createCompletenessScorer, | ||||||||||
| // createTextualDifferenceScorer, | ||||||||||
| // createToneScorer, | ||||||||||
| //} from '../evals/scorers/prebuilt' | ||||||||||
| import { chartSupervisorTool } from '../tools/financial-chart-tools' | ||||||||||
|
|
||||||||||
| // Define runtime context for this agent | ||||||||||
| export interface CopywriterAgentContext { | ||||||||||
| userId?: string | ||||||||||
|
|
@@ -72,7 +72,7 @@ Create compelling content (blog, marketing, social, technical, business, creativ | |||||||||
| }, | ||||||||||
| } | ||||||||||
| }, | ||||||||||
| model: google3, | ||||||||||
| model: 'google/gemini-2.5-flash-lite-preview-09-2025', | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The model ID is hardcoded here. To improve maintainability and prevent magic strings, it's better to use a named constant. The
Suggested change
|
||||||||||
| model: 'google/gemini-2.5-flash-lite-preview-09-2025', | |
| model: 'google/gemini-3-flash-preview', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The value 128576 is a magic number, which can make the code's intent unclear. It's a good practice to define such numbers as constants with descriptive names (e.g., const MAX_OUTPUT_TOKENS = 128576;) at the top of the file. This improves readability and makes future changes easier.
| outputProcessors: [new TokenLimiterProcessor(128576)], | |
| outputProcessors: [new TokenLimiterProcessor(MAX_OUTPUT_TOKENS)], |
Copilot
AI
Jan 15, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TokenLimiter value has been changed from 1048576 (1MB) to 128576 (~128KB), which is approximately 8x smaller. This significant reduction in token limit could cause issues with longer content generation tasks that the copywriterAgent is designed to handle. Since this agent creates blog posts, marketing copy, and other potentially lengthy content, this reduced limit may result in truncated outputs or failures when generating comprehensive content.
| outputProcessors: [new TokenLimiterProcessor(128576)], | |
| outputProcessors: [new TokenLimiterProcessor(1048576)], |
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -13,4 +13,3 @@ export * from './anthropic' | |||
| export * from './github-copilot' | ||||
| export * from './gemini-cli' | ||||
| export * from './ai-gateway' | ||||
|
||||
| export * from './ai-gateway' |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This import for
scorersis commented out. To maintain a clean codebase, it's best to remove unused, commented-out code. If this functionality is needed in the future, it can be retrieved from version control history.