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

Add Google Gemini llm. resolves #250 #281

Merged
merged 4 commits into from
Feb 13, 2025

Conversation

wozhapen
Copy link

增加谷歌Gemini组件. resolves #250

@LandJerry LandJerry requested a review from EdwinInAu February 13, 2025 06:44
Copy link
Collaborator

@EdwinInAu EdwinInAu left a comment

Choose a reason for hiding this comment

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

There’s a small issue with the value of the max_tokens parameter.

name: 'default_gemini_llm'
description: 'default gemini llm with spi'
model_name: 'gemini-2.0-flash'
max_tokens: 1048576
Copy link
Collaborator

Choose a reason for hiding this comment

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

The rest of the code looks good, but there’s a small issue with the value of the max_tokens parameter.
It means: "The maximum number of tokens that can be generated in the completion".
I suggest updating the value of max_tokens to either 1000 or 2000.

Copy link
Author

Choose a reason for hiding this comment

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

sorry, I misunderstood max_tokens. I have corrected it.

@EdwinInAu
Copy link
Collaborator

LGTM

@EdwinInAu EdwinInAu merged commit d82b796 into antgroup:master Feb 13, 2025
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.

【Easy Issue/入门实战】Enhancements for more LLM components/LLM组件接入
2 participants