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 changes primarily introduce conditional URL modifications and enhanced response handling for streaming data through the refactoring of the chat
method in the GeminiProApi
class. These updates involve importing certain modules and adjusting how requests and responses are processed, improving the functionality and behavior of the Google API's interaction within the application.
File | Change Summary |
---|---|
app/api/google/[...path]/route.ts |
Updated the fetchUrl construction to conditionally append &alt=sse based on req?.nextUrl?.searchParams?.get("alt") . |
app/client/platforms/google.ts |
Refactored the GeminiProApi class by:
|
In the code, where changes bloom,
URLs shift, and streams resume.
APIs talk, with data flow,
Enabling chats in a streaming show.
A rabbit hops, with glee and pride,
For code refined, on this joyride.
[!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]()
https://github.com/google-gemini/cookbook/blob/main/quickstarts/rest/Streaming_REST.ipynb
Summary by CodeRabbit
New Features
Refactor