Update app.py
Browse files
app.py
CHANGED
|
@@ -81,14 +81,14 @@ async def agent_chat(request: ChatRequest):
|
|
| 81 |
"run_terminal_command": run_terminal_command
|
| 82 |
}
|
| 83 |
|
| 84 |
-
# Gemma-2-9b-it
|
| 85 |
config = types.GenerateContentConfig(
|
| 86 |
system_instruction=system_instruction,
|
| 87 |
tools=[run_terminal_command, {'google_search': {}}],
|
| 88 |
temperature=0.2
|
| 89 |
)
|
| 90 |
|
| 91 |
-
# Chat session
|
| 92 |
chat = client.chats.create(model='gemma2-9b-it', config=config)
|
| 93 |
response = chat.send_message(user_prompt)
|
| 94 |
|
|
|
|
| 81 |
"run_terminal_command": run_terminal_command
|
| 82 |
}
|
| 83 |
|
| 84 |
+
# Gemma-2-9b-it model configurations
|
| 85 |
config = types.GenerateContentConfig(
|
| 86 |
system_instruction=system_instruction,
|
| 87 |
tools=[run_terminal_command, {'google_search': {}}],
|
| 88 |
temperature=0.2
|
| 89 |
)
|
| 90 |
|
| 91 |
+
# Chat session explicitly locked to Gemma
|
| 92 |
chat = client.chats.create(model='gemma2-9b-it', config=config)
|
| 93 |
response = chat.send_message(user_prompt)
|
| 94 |
|