Closed lloydzhou closed 2 days ago
@lloydzhou is attempting to deploy a commit to the NextChat Team on Vercel.
A member of the Team first needs to authorize it.
The recent update to the application introduces enhanced support for multiple providers (Azure, Google, and the new Anthropic provider) within the getHeaders
function. This entails modifying how API keys and authorization headers are handled and integrating these changes into the ClaudeApi
class in anthropic.ts
for a streamlined and consistent authorization process across different platforms.
File | Change Summary |
---|---|
app/client/api.ts |
Updated getHeaders function to handle Azure , Google , and newly added Anthropic providers. |
app/client/platforms/anthropic.ts |
Incorporated getHeaders into ClaudeApi class and removed the old getAuthKey function. |
sequenceDiagram
participant Client
participant Api as API
participant AccessStore
participant ClaudeApi
Client->>Api: Call getHeaders()
Api->>AccessStore: Retrieve API keys based on provider
Api-->>Client: Return headers
Client->>ClaudeApi: Initialize with headers
ClaudeApi->>Api: Import getHeaders
ClaudeApi-->>Client: ClaudeApi instance ready
In code's domain, where APIs thrive,
New headers bloom, Anthropic alive.
With keys so neat, in seamless flow,
To Claude they go, in lines they show.
🎩🐰 With change in air, the code does dance,
For Azure and Google, and now Anthropic's chance. 🌐✨
[!TIP]
Early access features: enabled
We are currently testing the following features in early access: - **OpenAI `gpt-4o` model for code reviews and chat**: OpenAI claims that this model is better at understanding and generating code than the previous models. We seek your feedback over the next few weeks before making it generally available. Note: - You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file. - Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide feedback and report issues. - OSS projects are currently opted into early access features by default.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Your build has completed!
[Preview deployment]()
anthropicApiKey
in browser!!!Authorization
header send access codeSummary by CodeRabbit
New Features
Azure
,Google
, andAnthropic
providers.Bug Fixes
Refactor