feat: add aispeech dialog APIs#887
Conversation
|
啥时候有空审核,这个是 微信智能对话平台的api,做这个是为了让agent有能力去管理托管在智能对话平台的语料。对用户来说,比针对关键词的自动回复体验好,有一些语义理解能力。 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dd112063e1
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| if accessToken == "" { | ||
| return "", errEmptyAccessToken | ||
| } | ||
| response, err := post(ctx, d.Config, path, nil, "application/json", accessToken, "") |
There was a problem hiding this comment.
Send a JSON object for publish requests
When callers invoke Publish(), this helper sends a zero-length body while declaring application/json. The publish endpoint has no request parameters but still expects a JSON object body, so real API calls can be rejected by JSON parsing before the bot is published. Please send and sign {} for this call instead of nil.
Useful? React with 👍 / 👎.
No description provided.