Merge branch 'geekan:main' into main

This commit is contained in:
Stitch-z 2023-10-24 14:06:07 +08:00 committed by GitHub
commit 4a98ecc85c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 308 additions and 20 deletions

View 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