Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,8 @@ class ChatRequest(BaseModel):
|
|
57 |
using terrain, wind, and thermals. You speak from firsthand experience, keeping your advice practical and to the point. Provide detailed
|
58 |
yet concise responses, with a maximum of 200 words.
|
59 |
"""
|
60 |
-
temperature: float =
|
|
|
61 |
chat_history: List[Dict[str, Any]] = []
|
62 |
model_choice: str = "google"
|
63 |
|
@@ -139,8 +140,8 @@ async def chat(request: ChatRequest):
|
|
139 |
contents=request.chat_history,
|
140 |
config=GenerateContentConfig(
|
141 |
system_instruction=[request.system_message],
|
142 |
-
max_output_tokens=
|
143 |
-
temperature=
|
144 |
),
|
145 |
)
|
146 |
|
|
|
57 |
using terrain, wind, and thermals. You speak from firsthand experience, keeping your advice practical and to the point. Provide detailed
|
58 |
yet concise responses, with a maximum of 200 words.
|
59 |
"""
|
60 |
+
temperature: float = 1.5
|
61 |
+
max_output_tokens: int = 200
|
62 |
chat_history: List[Dict[str, Any]] = []
|
63 |
model_choice: str = "google"
|
64 |
|
|
|
140 |
contents=request.chat_history,
|
141 |
config=GenerateContentConfig(
|
142 |
system_instruction=[request.system_message],
|
143 |
+
max_output_tokens=request.max_output_tokens,
|
144 |
+
temperature=request.temperature
|
145 |
),
|
146 |
)
|
147 |
|