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

update fireworks/open_llm api due to new openai sdk #616

Merged
merged 1 commit into from
Dec 24, 2023

Conversation

better629
Copy link
Collaborator

Features

  • update firworks api and CostManager
  • update openllm api and use a default _calcu_usage
  • add fireworks tests

Feature Docs

Influence

Result

fireworks

2023-12-24 15:25:55.659 | INFO     | metagpt.config:get_default_llm_provider_enum:115 - API: LLMProviderEnum.FIREWORKS
2023-12-24 15:25:57.010 | INFO     | metagpt.config:get_default_llm_provider_enum:115 - API: LLMProviderEnum.FIREWORKS
2023-12-24 15:25:59.814 | INFO     | metagpt.team:invest:91 - Investment: $3.0.
2023-12-24 15:25:59.816 | INFO     | metagpt.roles.role:_act:405 - Alice(Product Manager): to do PrepareDocuments()
2023-12-24 15:25:59.948 | INFO     | metagpt.utils.file_repository:save:60 - save to: /Users/xxx/work/demo-code/MetaGPT/workspace/20231224152559/docs/requirement.txt
2023-12-24 15:25:59.953 | INFO     | metagpt.roles.role:_act:405 - Alice(Product Manager): to do WritePRD()
Sure, I'll do my best to help you with your product management task. Here's the output for the given input:

[CONTENT]
{
    "Language": "en_us",
    "Programming Language": "Python",
    "Original Requirements": "Create a 2048 game",
    "Project Name": "game_2048",
    "Product Goals": [

open llm

2023-12-24 15:26:53.584 | INFO     | metagpt.config:get_default_llm_provider_enum:115 - API: LLMProviderEnum.OPEN_LLM
2023-12-24 15:26:54.868 | INFO     | metagpt.config:get_default_llm_provider_enum:115 - API: LLMProviderEnum.OPEN_LLM
2023-12-24 15:26:57.354 | INFO     | metagpt.team:invest:91 - Investment: $3.0.
2023-12-24 15:26:57.356 | INFO     | metagpt.roles.role:_act:405 - Alice(Product Manager): to do PrepareDocuments()
2023-12-24 15:26:57.491 | INFO     | metagpt.utils.file_repository:save:60 - save to: /Users/xxx/work/demo-code/MetaGPT/workspace/20231224152657/docs/requirement.txt
2023-12-24 15:26:57.495 | INFO     | metagpt.roles.role:_act:405 - Alice(Product Manager): to do WritePRD()


### output
[CONTENT]
{
   "Language": "en_us",
   "Programming Language": "Python",
   "Original Requirements": "Create a 2048 game",
   "Project Name": "game_2048",
   "Product Goals": [

Other

@geekan geekan merged commit 3b9e20d into geekan:dev Dec 24, 2023
1 check passed
@better629 better629 deleted the new_dev_updatellm branch December 29, 2023 03:19
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