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 gemini #595

Merged
merged 13 commits into from
Dec 21, 2023
Merged

Feat gemini #595

merged 13 commits into from
Dec 21, 2023

Conversation

better629
Copy link
Collaborator

@better629 better629 commented Dec 21, 2023

Feat

  • add google Gemini api support

Requirement

  • Python version should >=3.10 due to the sdk used aiter which is introduced in python 3.10.

Lack

  • tokens usage computation

Warn

  • it seems that Gemini is not stable, it can't allways follow the instruction like below
[CONTENT]
{
    "Original Requirements": "Write a 2048 game",
    "Search Information": null,
    "Requirements": null,
    "Product Goals": [],
    "User Stories": [],
    "Competitive Analysis": [],
    "Competitive Quadrant Chart": null,
    "Requirement Analysis": null,
    "Requirement Pool": [],
    "UI Design draft": null,
    "Anything UNCLEAR": null
}
[/CONTENT]2023-12-14 17:07:31.793 | INFO     | metagpt.provider.openai_api:update_cost:91 - Total running cost: $0.001 | Max budget: $3.000 | Current cost: $0.000, prompt_tokens: 927, completion_tokens: 105

Result
gemini_run_20231214.log

two_zero_four_eight.zip

the log Use LLMProvider: xxx has been commented.
image
image

@geekan
Copy link
Owner

geekan commented Dec 21, 2023

LGTM

@geekan geekan merged commit a4843cd into geekan:main Dec 21, 2023
1 check passed
@better629 better629 deleted the feat_gemini branch December 21, 2023 07:26
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.

2 participants