Skip to content

Commit

Permalink
新增测试文件夹;新增讯飞星火 单测程序
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikaros-521 committed Jul 25, 2023
1 parent 610019f commit 63be749
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/test_sparkdesk/chat.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from sparkdesk_web.core import SparkWeb
from sparkdesk_api.core import SparkAPI

sparkWeb = SparkWeb(
cookie="",
fd="",
GtToken=""
)

sparkAPI = SparkAPI(
app_id="",
api_secret="",
api_key=""
)

# single chat
print(sparkWeb.chat("repeat: hello world"))
print(sparkAPI.chat("repeat: hello world"))

0 comments on commit 63be749

Please sign in to comment.