mirror of
https://github.com/open-webui/pipelines
synced 2025-06-26 18:15:58 +00:00
Merge 33da359c6d
into adec65727e
This commit is contained in:
commit
5f6dced05a
@ -170,6 +170,7 @@ And answer according to the language of the user's question.""",
|
||||
|
||||
response = r.json()
|
||||
content = response["choices"][0]["message"]["content"]
|
||||
content = content[content.find('{'):content.rfind('}') + 1]
|
||||
|
||||
# Parse the function response
|
||||
if content != "":
|
||||
|
Loading…
Reference in New Issue
Block a user