Adam Cseresznye commited on
Commit ·
9a0e1c0
1
Parent(s): ba5dea8
Set num_retries to 0 in LLMRouter completion call
Browse files- utils/llm_router.py +2 -0
utils/llm_router.py
CHANGED
|
@@ -61,6 +61,8 @@ class LLMRouter:
|
|
| 61 |
messages=[{"role": "user", "content": prompt}],
|
| 62 |
timeout=timeout,
|
| 63 |
api_key=api_key,
|
|
|
|
|
|
|
| 64 |
)
|
| 65 |
|
| 66 |
async def generate(self, prompt: str, model_type: str) -> str:
|
|
|
|
| 61 |
messages=[{"role": "user", "content": prompt}],
|
| 62 |
timeout=timeout,
|
| 63 |
api_key=api_key,
|
| 64 |
+
# max_tokens=4096,
|
| 65 |
+
num_retries=0,
|
| 66 |
)
|
| 67 |
|
| 68 |
async def generate(self, prompt: str, model_type: str) -> str:
|