mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-14 15:25:17 +02:00
Merge pull request #1291 from usamimeri/update_spark
Feat: support async spark api
This commit is contained in:
commit
519be03d4a
5 changed files with 123 additions and 191 deletions
10
config/examples/spark_lite.yaml
Normal file
10
config/examples/spark_lite.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# 适用于讯飞星火的spark-lite 参考 https://www.xfyun.cn/doc/spark/Web.html#_2-function-call%E8%AF%B4%E6%98%8E
|
||||
|
||||
llm:
|
||||
api_type: "spark"
|
||||
# 对应模型的url 参考 https://www.xfyun.cn/doc/spark/Web.html#_1-%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E
|
||||
base_url: "ws(s)://spark-api.xf-yun.com/v1.1/chat"
|
||||
app_id: ""
|
||||
api_key: ""
|
||||
api_secret: ""
|
||||
domain: "general" # 取值为 [general,generalv2,generalv3,generalv3.5] 和url一一对应
|
||||
Loading…
Add table
Add a link
Reference in a new issue