Spaces:
Sleeping
Sleeping
更换模型
Browse files
app.py
CHANGED
|
@@ -49,12 +49,19 @@ final_answer = FinalAnswerTool()
|
|
| 49 |
# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
|
| 50 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
| 51 |
|
| 52 |
-
model =
|
|
|
|
|
|
|
|
|
|
| 53 |
max_tokens=2096,
|
| 54 |
-
temperature=0.5
|
| 55 |
-
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
| 56 |
-
custom_role_conversions=None,
|
| 57 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
|
| 60 |
# Import tool from Hub
|
|
|
|
| 49 |
# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
|
| 50 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
| 51 |
|
| 52 |
+
model = OpenAIServerModel(
|
| 53 |
+
model_id="deepseek-chat",
|
| 54 |
+
api_base="https://api.deepseek.com",
|
| 55 |
+
api_key="sk-1e86e73953e941068e46988d1563b6e6",
|
| 56 |
max_tokens=2096,
|
| 57 |
+
temperature=0.5
|
|
|
|
|
|
|
| 58 |
)
|
| 59 |
+
# HfApiModel(
|
| 60 |
+
# max_tokens=2096,
|
| 61 |
+
# temperature=0.5,
|
| 62 |
+
# model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
| 63 |
+
# custom_role_conversions=None,
|
| 64 |
+
# )
|
| 65 |
|
| 66 |
|
| 67 |
# Import tool from Hub
|