Spaces:
Sleeping
Sleeping
typo
Browse files
agent.py
CHANGED
|
@@ -44,7 +44,7 @@ class QAgent:
|
|
| 44 |
#
|
| 45 |
# self.model = HfApiModel(
|
| 46 |
# model_id=model_id or "Qwen/Qwen2.5-Coder-32B-Instruct", # précédemment : or "meta-llama/Llama-3-70B-Instruct",
|
| 47 |
-
# token=api_key
|
| 48 |
# temperature=temperature
|
| 49 |
# )
|
| 50 |
# el
|
|
@@ -61,7 +61,7 @@ class QAgent:
|
|
| 61 |
model_id=model_id or "Qwen/Qwen2.5-Coder-32B-Instruct", # précédemment : or "meta-llama/Llama-3-70B-Instruct",
|
| 62 |
provider=provider or "nebius", # or "hf-inference",
|
| 63 |
token=api_key,
|
| 64 |
-
timeout=timeout or 120
|
| 65 |
temperature=temperature
|
| 66 |
)
|
| 67 |
elif model_type == "OpenAIServerModel":
|
|
|
|
| 44 |
#
|
| 45 |
# self.model = HfApiModel(
|
| 46 |
# model_id=model_id or "Qwen/Qwen2.5-Coder-32B-Instruct", # précédemment : or "meta-llama/Llama-3-70B-Instruct",
|
| 47 |
+
# token=api_key,
|
| 48 |
# temperature=temperature
|
| 49 |
# )
|
| 50 |
# el
|
|
|
|
| 61 |
model_id=model_id or "Qwen/Qwen2.5-Coder-32B-Instruct", # précédemment : or "meta-llama/Llama-3-70B-Instruct",
|
| 62 |
provider=provider or "nebius", # or "hf-inference",
|
| 63 |
token=api_key,
|
| 64 |
+
timeout=timeout or 120,
|
| 65 |
temperature=temperature
|
| 66 |
)
|
| 67 |
elif model_type == "OpenAIServerModel":
|