fix: update text_to_audio method to send data as JSON (#20663)
This commit is contained in:
parent
3367d4258d
commit
837f769960
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ class DifyClient:
|
||||||
|
|
||||||
def text_to_audio(self, text: str, user: str, streaming: bool = False):
|
def text_to_audio(self, text: str, user: str, streaming: bool = False):
|
||||||
data = {"text": text, "user": user, "streaming": streaming}
|
data = {"text": text, "user": user, "streaming": streaming}
|
||||||
return self._send_request("POST", "/text-to-audio", data=data)
|
return self._send_request("POST", "/text-to-audio", json=data)
|
||||||
|
|
||||||
def get_meta(self, user):
|
def get_meta(self, user):
|
||||||
params = {"user": user}
|
params = {"user": user}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue