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

feat: add tests for VertexAIGeminiGenerator and enable streaming #1012

Merged
merged 20 commits into from
Aug 27, 2024

Conversation

Amnah199
Copy link
Contributor

@Amnah199 Amnah199 commented Aug 20, 2024

Related Issues

Proposed Changes:

Add streaming_callback parameter in VertexAIGeminiGenerator to enable streaming.

How did you test it?

  • Created new tests for VertextAIGeminiGenerator

Notes for the reviewer

Streaming can also be implemented without using StreamingChunk but I decided to use it for consistency with other implementations we have in Bedrock, OpenAI etc.

Checklist

@github-actions github-actions bot added the type:documentation Improvements or additions to documentation label Aug 20, 2024
@Amnah199 Amnah199 changed the title feat: enable streaming in VertexAI feat: add tests for VertexAIGeminiGenerator and enable streaming Aug 21, 2024
@Amnah199 Amnah199 marked this pull request as ready for review August 21, 2024 11:58
@Amnah199 Amnah199 requested a review from a team as a code owner August 21, 2024 11:58
@Amnah199 Amnah199 requested review from julian-risch and removed request for a team August 21, 2024 11:58
Copy link
Member

@julian-risch julian-risch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just have some smaller comments and a few questions. We can also go through it together in a short call if it helps. Just let me know.

integrations/amazon_bedrock/CHANGELOG.md Outdated Show resolved Hide resolved
integrations/pinecone/CHANGELOG.md Outdated Show resolved Hide resolved
integrations/google_vertex/tests/test_gemini.py Outdated Show resolved Hide resolved
integrations/google_vertex/tests/test_gemini.py Outdated Show resolved Hide resolved
integrations/google_vertex/tests/test_gemini.py Outdated Show resolved Hide resolved
integrations/google_vertex/tests/test_gemini.py Outdated Show resolved Hide resolved
@Amnah199 Amnah199 requested a review from julian-risch August 25, 2024 23:11
Copy link
Member

@julian-risch julian-risch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@Amnah199 Amnah199 merged commit b8d212b into main Aug 27, 2024
10 checks passed
@Amnah199 Amnah199 deleted the feat-vertexai-streaming branch August 27, 2024 13:11
Amnah199 added a commit that referenced this pull request Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test: add tests for VertexAIGeminiGenerator
3 participants