Add support for Claude api #35
Open
cfiorini74 wants to merge 6 commits into
Open
Conversation
Introduces a shared model config layer so either OpenAI or Anthropic can be used as the LLM provider, selected via LLM_PROVIDER env var. OpenAI remains the default for backwards compatibility. - Add src/lib/models.ts with getLargeModel/getSmallModel/getPowerModel helpers - Refactor all agent files to import from models.ts instead of hardcoding openai() - Install @ai-sdk/anthropic and upgrade @ai-sdk/openai to v3 for spec compatibility - Model mapping: gpt-4o→claude-sonnet-4-6, gpt-4o-mini→claude-haiku-4-5, gpt-5→claude-opus-4-6 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Document OpenAI and Anthropic/Claude as provider options, update env var examples with LLM_PROVIDER config in both self-hosted and Valyu mode sections. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ties - Replace experimental_output with generateObject() in researcher.ts (3 instances) - Remove z.string().url() format validator (unsupported by Anthropic) - Remove array minItems/maxItems constraints from planner and driver-generator schemas - Replace z.record() with array of key-value objects in critic schema (unsupported additionalProperties) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Someone is attempting to deploy a commit to the Valyu-Network Team on Vercel. A member of the Team first needs to authorize it. |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Add optional support for Claude api