mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-19 13:28:11 +08:00
feat: speech support app_code bind
This commit is contained in:
@@ -62,7 +62,8 @@ class LinkAIVoice(Voice):
|
|||||||
data = {
|
data = {
|
||||||
"model": model,
|
"model": model,
|
||||||
"input": text,
|
"input": text,
|
||||||
"voice": conf().get("tts_voice_id")
|
"voice": conf().get("tts_voice_id"),
|
||||||
|
"app_code": conf().get("linkai_app_code")
|
||||||
}
|
}
|
||||||
res = requests.post(url, headers=headers, json=data, timeout=(5, 120))
|
res = requests.post(url, headers=headers, json=data, timeout=(5, 120))
|
||||||
if res.status_code == 200:
|
if res.status_code == 200:
|
||||||
|
|||||||
Reference in New Issue
Block a user