Skip to content

Commit cfc2467

Browse files
author
Gilad Barnea
committed
- Changed loading status display in printer.py from a dynamic spinner to a straightforward print statement for better user experience.
- No longer printing "> @functioncall"
1 parent 56b9666 commit cfc2467

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

sgpt/handlers/handler.py

-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ def handle_function_call(
7272
yield "\n"
7373

7474
dict_args = json.loads(arguments)
75-
joined_args = ", ".join(f'{k}="{v}"' for k, v in dict_args.items())
76-
yield f"> @FunctionCall `{name}({joined_args})` \n\n"
7775

7876
result = get_function(name)(**dict_args)
7977
if cfg.get("SHOW_FUNCTIONS_OUTPUT") == "true":

sgpt/printer.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def static_print(self, text: str) -> str:
2121
def __call__(self, chunks: Generator[str, None, None], live: bool = True) -> str:
2222
if live:
2323
return self.live_print(chunks)
24-
with self.console.status("[bold green]Loading..."):
25-
full_completion = "".join(chunks)
24+
self.console.print("[bold green]Loading...")
25+
full_completion = "".join(chunks)
2626
self.static_print(full_completion)
2727
return full_completion
2828

0 commit comments

Comments
 (0)