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 zhipu api #770

Merged
merged 1 commit into from
Jan 17, 2024
Merged

update zhipu api #770

merged 1 commit into from
Jan 17, 2024

Conversation

better629
Copy link
Collaborator

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 geekan:main Jan 17, 2024
1 of 2 checks passed
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