Skip to content

Feat gemini#595

Merged
geekan merged 13 commits intoFoundationAgents:mainfrom
better629:feat_gemini
Dec 21, 2023
Merged

Feat gemini#595
geekan merged 13 commits intoFoundationAgents:mainfrom
better629:feat_gemini

Conversation

@better629
Copy link
Member

@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
Collaborator

geekan commented Dec 21, 2023

LGTM

@geekan geekan merged commit a4843cd into FoundationAgents:main Dec 21, 2023
@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