Update app.py
Browse files
app.py
CHANGED
|
@@ -12,6 +12,7 @@ def respond(message, tool_options, tool_name):
|
|
| 12 |
if tool_options == "Force Use Specific Tool":
|
| 13 |
message = client.messages.create(
|
| 14 |
model=MODEL_NAME,
|
|
|
|
| 15 |
tools=tools,
|
| 16 |
tool_choice={"type": "tool", "name": tool_name},
|
| 17 |
messages=[
|
|
@@ -35,6 +36,7 @@ def respond(message, tool_options, tool_name):
|
|
| 35 |
elif tool_options == "Plain (No Tools)":
|
| 36 |
message = client.messages.create(
|
| 37 |
model=MODEL_NAME,
|
|
|
|
| 38 |
messages=[
|
| 39 |
{
|
| 40 |
"role": "user",
|
|
|
|
| 12 |
if tool_options == "Force Use Specific Tool":
|
| 13 |
message = client.messages.create(
|
| 14 |
model=MODEL_NAME,
|
| 15 |
+
max_tokens=4096,
|
| 16 |
tools=tools,
|
| 17 |
tool_choice={"type": "tool", "name": tool_name},
|
| 18 |
messages=[
|
|
|
|
| 36 |
elif tool_options == "Plain (No Tools)":
|
| 37 |
message = client.messages.create(
|
| 38 |
model=MODEL_NAME,
|
| 39 |
+
max_tokens=4096,
|
| 40 |
messages=[
|
| 41 |
{
|
| 42 |
"role": "user",
|