mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
修改命名
This commit is contained in:
parent
041da760e0
commit
ecea8574b5
2 changed files with 10 additions and 10 deletions
|
|
@ -62,9 +62,9 @@ class Config(metaclass=Singleton):
|
|||
self.deployment_name = self._get("DEPLOYMENT_NAME")
|
||||
self.deployment_id = self._get("DEPLOYMENT_ID")
|
||||
|
||||
self.xinghuo_appid = self._get("XINGHUO_APPID")
|
||||
self.xinghuo_api_secret = self._get("XINGHUO_API_SECRET")
|
||||
self.xinghuo_api_key = self._get("XINGHUO_API_KEY")
|
||||
self.spark_appid = self._get("SPARK_APPID")
|
||||
self.spark_api_secret = self._get("SPARK_API_SECRET")
|
||||
self.spark_api_key = self._get("SPARK_API_KEY")
|
||||
self.domain = self._get("DOMAIN")
|
||||
self.spark_url = self._get("SPARK_URL")
|
||||
|
||||
|
|
|
|||
|
|
@ -116,9 +116,9 @@ class GetMessageFromWeb:
|
|||
def __init__(self, text):
|
||||
self.text = text
|
||||
self.ret = ''
|
||||
self.xinghuo_appid = CONFIG.xinghuo_appid
|
||||
self.xinghuo_api_secret = CONFIG.xinghuo_api_secret
|
||||
self.xinghuo_api_key = CONFIG.xinghuo_api_key
|
||||
self.spark_appid = CONFIG.spark_appid
|
||||
self.spark_api_secret = CONFIG.spark_api_secret
|
||||
self.spark_api_key = CONFIG.spark_api_key
|
||||
self.domain = CONFIG.domain
|
||||
self.spark_url = CONFIG.spark_url
|
||||
|
||||
|
|
@ -153,7 +153,7 @@ class GetMessageFromWeb:
|
|||
|
||||
data = {
|
||||
"header": {
|
||||
"app_id": self.xinghuo_appid,
|
||||
"app_id": self.spark_appid,
|
||||
"uid": "1234"
|
||||
},
|
||||
"parameter": {
|
||||
|
|
@ -191,9 +191,9 @@ class GetMessageFromWeb:
|
|||
def _run(self, text_list):
|
||||
|
||||
ws_param = self.WsParam(
|
||||
self.xinghuo_appid,
|
||||
self.xinghuo_api_key,
|
||||
self.xinghuo_api_secret,
|
||||
self.spark_appid,
|
||||
self.spark_api_key,
|
||||
self.spark_api_secret,
|
||||
self.spark_url,
|
||||
text_list)
|
||||
ws_url = ws_param.create_url()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue