Spaces:
Sleeping
Sleeping
test: insider
Browse files
services/model_handler.py
CHANGED
@@ -46,7 +46,6 @@ class ModelHandler:
|
|
46 |
api_key=str(random.choice(API_KEYS)),
|
47 |
base_url="https://api.moonshot.cn/v1",
|
48 |
id="moonshot-v1-8k",
|
49 |
-
tools=[ArxivTools(), PubmedTools()],
|
50 |
instructions=[
|
51 |
"You have ArxivTools and PubmedTools at your disposal. Use them to find relevant papers for the question.",
|
52 |
"You need to understand the context of the question to provide the best answer based on your tools.",
|
@@ -58,7 +57,8 @@ class ModelHandler:
|
|
58 |
"The answer must be brief."
|
59 |
],
|
60 |
show_tool_calls=True
|
61 |
-
)
|
|
|
62 |
)
|
63 |
self.summarizer = Agent(
|
64 |
name="Summarizer",
|
|
|
46 |
api_key=str(random.choice(API_KEYS)),
|
47 |
base_url="https://api.moonshot.cn/v1",
|
48 |
id="moonshot-v1-8k",
|
|
|
49 |
instructions=[
|
50 |
"You have ArxivTools and PubmedTools at your disposal. Use them to find relevant papers for the question.",
|
51 |
"You need to understand the context of the question to provide the best answer based on your tools.",
|
|
|
57 |
"The answer must be brief."
|
58 |
],
|
59 |
show_tool_calls=True
|
60 |
+
),
|
61 |
+
tools=[ArxivTools(), PubmedTools()]
|
62 |
)
|
63 |
self.summarizer = Agent(
|
64 |
name="Summarizer",
|