mirror of
https://github.com/open-webui/pipelines
synced 2025-05-13 17:10:45 +00:00
Remove back quotes when receiving a function response
This commit is contained in:
parent
1367d95750
commit
33da359c6d
@ -168,6 +168,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