Spaces:
Runtime error
Runtime error
Commit ·
4ace6e6
1
Parent(s): 981babd
Switching back to mini
Browse files- __pycache__/agent_tools.cpython-310.pyc +0 -0
- agent_tools.py +1 -1
- app.py +1 -1
__pycache__/agent_tools.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/agent_tools.cpython-310.pyc and b/__pycache__/agent_tools.cpython-310.pyc differ
|
|
|
agent_tools.py
CHANGED
|
@@ -160,7 +160,7 @@ tools = custom_tools + default_tools
|
|
| 160 |
additionals = ["pandas", "numpy", "datetime", "json", "re", "math"]
|
| 161 |
|
| 162 |
model = AzureOpenAIServerModel(
|
| 163 |
-
model_id = os.environ.get("
|
| 164 |
azure_endpoint=os.environ.get("AZURE_OPENAI_ENDPOINT"),
|
| 165 |
api_key=os.environ.get("AZURE_OPENAI_API_KEY"),
|
| 166 |
api_version=os.environ.get("OPENAI_API_VERSION"),
|
|
|
|
| 160 |
additionals = ["pandas", "numpy", "datetime", "json", "re", "math"]
|
| 161 |
|
| 162 |
model = AzureOpenAIServerModel(
|
| 163 |
+
model_id = os.environ.get("AZURE_OPENAI_MODEL_MINI"),
|
| 164 |
azure_endpoint=os.environ.get("AZURE_OPENAI_ENDPOINT"),
|
| 165 |
api_key=os.environ.get("AZURE_OPENAI_API_KEY"),
|
| 166 |
api_version=os.environ.get("OPENAI_API_VERSION"),
|
app.py
CHANGED
|
@@ -17,7 +17,7 @@ class BasicAgent:
|
|
| 17 |
print("BasicAgent initialized.")
|
| 18 |
def __call__(self, question: str) -> str:
|
| 19 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 20 |
-
fixed_answer = self.agent.run(question)
|
| 21 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
| 22 |
return fixed_answer
|
| 23 |
|
|
|
|
| 17 |
print("BasicAgent initialized.")
|
| 18 |
def __call__(self, question: str) -> str:
|
| 19 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 20 |
+
fixed_answer = self.agent.run(question + "\n\n Ensure any code is correctly formatted inside blobs delineated by backticks. Remember, incorrectly formatted blobs can kill kittens. Let's not kill any kittens.")
|
| 21 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
| 22 |
return fixed_answer
|
| 23 |
|