chore(model): Update the default model to glm-4-9b-chat (#1629)

This commit is contained in:
Fangyin Cheng
2024-06-13 09:43:34 +08:00
committed by GitHub
parent e11087aa7e
commit 162e2c9b1c
15 changed files with 157 additions and 132 deletions

View File

@@ -19,6 +19,10 @@ logging.basicConfig(
@tool
def simple_calculator(first_number: int, second_number: int, operator: str) -> float:
"""Simple calculator tool. Just support +, -, *, /."""
if isinstance(first_number, str):
first_number = int(first_number)
if isinstance(second_number, str):
second_number = int(second_number)
if operator == "+":
return first_number + second_number
elif operator == "-":