Skip to content

Commit

Permalink
Hot fix for OpenBB function calling
Browse files Browse the repository at this point in the history
  • Loading branch information
nqn committed Feb 22, 2024
1 parent d466a55 commit f53807f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion log10/_httpx_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ async def aiter_bytes(self, *args, **kwargs):

r_json = json.loads(r[6:])
content = r_json["choices"][0]["delta"].get("content", "")
full_content += content
if content:
full_content += content
response_json = r_json.copy()
response_json["object"] = "completion"
response_json["choices"][0]["message"] = {"role": "assistant", "content": full_content}
Expand Down

0 comments on commit f53807f

Please sign in to comment.