Skip to content

Conversation

@better629
Copy link
Member

Features

  • update zhipu api due to new model and api(api has a huge update)
  • repair extra invalid generate output to load into json object.
  • update its unittests

Feature Docs

Influence

  • There is a Unclosed connection problem remain to check.
  • Will have more general async request for llm and load the output into pydantic model.

Result

python3 examples/llm_hello_world.py pass

(metagpt_310) MacBook-Pro:MetaGPT xxx$ pytest tests/metagpt/utils/test_repair_llm_raw_output.py
============================================================================== test session starts ===============================================================================
collected 7 items

tests/metagpt/utils/test_repair_llm_raw_output.py .......                                                                                                                  [100%]

=============================================================================== 7 passed in 4.53s ================================================================================
(metagpt_310) MacBook-Pro:MetaGPT xxx$ pytest tests/metagpt/provider/test_zhipuai_api.py
============================================================================== test session starts ===============================================================================
collected 2 items

tests/metagpt/provider/test_zhipuai_api.py ..                                                                                                                              [100%]

=============================================================================== 2 passed in 0.44s ================================================================================

(metagpt_310) MacBook-Pro:MetaGPT xxx$ pytest tests/metagpt/provider/zhipuai/
============================================================================== test session starts ===============================================================================

tests/metagpt/provider/zhipuai/test_async_sse_client.py .                                                                                                                  [ 50%]
tests/metagpt/provider/zhipuai/test_zhipu_model_api.py .                                                                                                                   [100%]

=============================================================================== 2 passed in 0.51s ================================================================================

Other

glm-4_game_2048.zip
20240117_glm-4.txt

glm3-turbo_game_2048.zip
20240117_glm-3-turbo.txt

@geekan geekan merged commit 297c2c0 into FoundationAgents:main Jan 17, 2024
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