Skip to content

Commit

Permalink
docs: add helpful comments to sparkllm.py (langchain-ai#17774)
Browse files Browse the repository at this point in the history
Adding helpful comments to sparkllm.py, help users to use ChatSparkLLM
more effectively
  • Loading branch information
vsxd authored and Hayden Wolff committed Feb 27, 2024
1 parent d21c8aa commit d2d40a3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions libs/community/langchain_community/chat_models/sparkllm.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,18 @@ class ChatSparkLLM(BaseChatModel):
spark_api_key="<api_key>",
spark_api_secret="<api_secret>"
)
Extra infos:
1. Get app_id, api_key, api_secret from the iFlyTek Open Platform Console:
https://console.xfyun.cn/services/bm35
2. By default, iFlyTek Spark LLM V3.0 is invoked.
If you need to invoke other versions, please configure the corresponding
parameters(spark_api_url and spark_llm_domain) according to the document:
https://www.xfyun.cn/doc/spark/Web.html
3. It is necessary to ensure that the app_id used has a license for
the corresponding model version.
4. If you encounter problems during use, try getting help at:
https://console.xfyun.cn/workorder/commit
"""

@classmethod
Expand Down

0 comments on commit d2d40a3

Please sign in to comment.