Skip to content
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

Update AnthropicChatModel, relax OpenAIChatModel #541

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

petersalas
Copy link
Contributor

  • Update Anthropic SDK, switch to messages API, add support for beta tool use API
  • Relax OpenAI function calling restrictions (all models support function calling now)
  • Add maxInputTokens prop to OpenAIChatModel to support explicitly limiting prompt size
  • Add new GPT-4 models to enum

@petersalas petersalas requested a review from mdepinet April 9, 2024 18:53
Copy link

vercel bot commented Apr 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ai-jsx-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 9, 2024 9:22pm
ai-jsx-nextjs-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 9, 2024 9:22pm
ai-jsx-tutorial-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 9, 2024 9:22pm

packages/ai-jsx/src/lib/openai.tsx Show resolved Hide resolved
@petersalas petersalas merged commit feecd64 into main Apr 9, 2024
6 checks passed
petersalas added a commit that referenced this pull request Apr 10, 2024
#541 accidentally caused anthropic requests to be sent twice.
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.

None yet

2 participants