mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-26 15:49:42 +02:00
Merge branch 'geekan:main' into main
This commit is contained in:
commit
4a98ecc85c
8 changed files with 308 additions and 20 deletions
11
tests/metagpt/provider/test_spark_api.py
Normal file
11
tests/metagpt/provider/test_spark_api.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
from metagpt.logs import logger
|
||||
from metagpt.provider.spark_api import SparkAPI
|
||||
|
||||
|
||||
def test_message():
|
||||
llm = SparkAPI()
|
||||
|
||||
logger.info(llm.ask('只回答"收到了"这三个字。'))
|
||||
result = llm.ask('写一篇五百字的日记')
|
||||
logger.info(result)
|
||||
assert len(result) > 100
|
||||
Loading…
Add table
Add a link
Reference in a new issue