mirror of
https://github.com/TheR1D/shell_gpt.git
synced 2026-06-02 06:14:32 +02:00
Chat and REPL modes output fix after function calls (#525)
This commit is contained in:
@@ -47,7 +47,7 @@ class ChatSession:
|
||||
if not kwargs.get("messages"):
|
||||
return
|
||||
if not chat_id:
|
||||
yield from func(*args, **kwargs, caching=False)
|
||||
yield from func(*args, **kwargs)
|
||||
return
|
||||
previous_messages = self._read(chat_id)
|
||||
for message in kwargs["messages"]:
|
||||
|
||||
@@ -121,7 +121,12 @@ class Handler:
|
||||
if chunk.choices[0].finish_reason == "function_call":
|
||||
yield from self.handle_function_call(messages, name, arguments)
|
||||
yield from self.get_completion(
|
||||
model, temperature, top_p, messages, functions, caching=False
|
||||
model=model,
|
||||
temperature=temperature,
|
||||
top_p=top_p,
|
||||
messages=messages,
|
||||
functions=functions,
|
||||
caching=False,
|
||||
)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user