Skip to content

Commit

Permalink
🐛 Bug: Fix the bug where the time retrieval plugin is not working.
Browse files Browse the repository at this point in the history
  • Loading branch information
yym68686 committed Oct 3, 2024
1 parent 4683124 commit c238674
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name="modelmerge",
version="0.11.49",
version="0.11.50",
description="modelmerge is a multi-large language model API aggregator.",
long_description=Path.open(Path("README.md"), encoding="utf-8").read(),
long_description_content_type="text/markdown",
Expand Down
2 changes: 1 addition & 1 deletion src/ModelMerge/models/chatgpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ async def ask_stream_async(
self.function_calls_counter[function_call_name] = 1
else:
self.function_calls_counter[function_call_name] += 1
if self.function_calls_counter[function_call_name] <= self.function_call_max_loop and function_full_response != "{}":
if self.function_calls_counter[function_call_name] <= self.function_call_max_loop and (function_full_response != "{}" or function_call_name == "get_date_time_weekday"):
function_call_max_tokens = self.truncate_limit - message_token["total"] - 1000
if function_call_max_tokens <= 0:
function_call_max_tokens = int(self.truncate_limit / 2)
Expand Down

0 comments on commit c238674

Please sign in to comment.