Compare commits

...

1 Commits

Author SHA1 Message Date
Brandon Hancock
4854e029ae include fixes for max 2025-02-14 12:22:33 -05:00
2 changed files with 2 additions and 1 deletions

View File

@@ -6,7 +6,7 @@
},
"slices": {
"observation": "\nObservation:",
"task": "\nCurrent Task: {input}\n\nBegin! This is VERY important to you, use the tools available and give your best Final Answer, your job depends on it!\n\nThought:",
"task": "\nCurrent Task: {input}\n\nBegin! This is VERY important to you, use the tools available and give your best Final Answer, your job depends on it!\n\n",
"memory": "\n\n# Useful context: \n{memory}",
"role_playing": "You are {role}. {backstory}\nYour personal goal is: {goal}",
"tools": "\nYou ONLY have access to the following tools, and should NEVER make up tools that are not listed here:\n\n{tools}\n\nIMPORTANT: Use the following format in your response:\n\n```\nThought: you should always think about what to do\nAction: the action to take, only one name of [{tool_names}], just the name, exactly as it's written.\nAction Input: the input to the action, just a simple JSON object, enclosed in curly braces, using \" to wrap keys and values.\nObservation: the result of the action\n```\n\nOnce all necessary information is gathered, return the following format:\n\n```\nThought: I now know the final answer\nFinal Answer: the final answer to the original input question\n```",

View File

@@ -110,6 +110,7 @@ def _llm_via_environment_or_fallback() -> Optional[LLM]:
)
api_base = os.environ.get("API_BASE") or os.environ.get("AZURE_API_BASE")
api_version = os.environ.get("API_VERSION") or os.environ.get("AZURE_API_VERSION")
# Synchronize base_url and api_base if one is populated and the other is not
if base_url and not api_base: