From 4854e029ae3d303c6556c8aa5b13d4f2670249c2 Mon Sep 17 00:00:00 2001 From: Brandon Hancock Date: Fri, 14 Feb 2025 12:22:33 -0500 Subject: [PATCH] include fixes for max --- src/crewai/translations/en.json | 2 +- src/crewai/utilities/llm_utils.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/crewai/translations/en.json b/src/crewai/translations/en.json index f09f1dba0..3a5696514 100644 --- a/src/crewai/translations/en.json +++ b/src/crewai/translations/en.json @@ -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```", diff --git a/src/crewai/utilities/llm_utils.py b/src/crewai/utilities/llm_utils.py index c774a71fb..b06d94e6a 100644 --- a/src/crewai/utilities/llm_utils.py +++ b/src/crewai/utilities/llm_utils.py @@ -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: