Spaces:
Sleeping
Sleeping
Update multiagents.py
Browse files- multiagents.py +4 -1
multiagents.py
CHANGED
|
@@ -188,7 +188,10 @@ You should coordinate the work and synthesize the results from different agents
|
|
| 188 |
try:
|
| 189 |
response = openai.chat.completions.create(
|
| 190 |
model=self.model_id,
|
| 191 |
-
messages=self.conversation_history
|
|
|
|
|
|
|
|
|
|
| 192 |
)
|
| 193 |
|
| 194 |
message = response.choices[0].message.content
|
|
|
|
| 188 |
try:
|
| 189 |
response = openai.chat.completions.create(
|
| 190 |
model=self.model_id,
|
| 191 |
+
messages=self.conversation_history,
|
| 192 |
+
temperature=0.1, # Controls randomness (0.0 to 2.0)
|
| 193 |
+
top_p=0.88, # Nucleus sampling
|
| 194 |
+
max_tokens=4000 # Maximum response length
|
| 195 |
)
|
| 196 |
|
| 197 |
message = response.choices[0].message.content
|