Skip to content

Commit

Permalink
remove chck
Browse files Browse the repository at this point in the history
  • Loading branch information
gecBurton committed Oct 9, 2024
1 parent a09f6c6 commit 0250027
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions redbox-core/redbox/chains/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@ def get_chat_llm(model: str, tools: list[StructuredTool] | None = None):
chat_model = init_chat_model(model=model, model_provider=model_provider)
if tools:
chat_model = chat_model.bind_tools(tools)

try:
check = chat_model.invoke("hello")
logger.info("check=%s", check)
except Exception:
logger.exception(
"failed to initialise model. AZURE_OPENAI_API_KEY=%s AZURE_OPENAI_ENDPOINT=%s OPENAI_API_VERSION=%s",
os.environ["AZURE_OPENAI_API_KEY"],
os.environ["AZURE_OPENAI_ENDPOINT"],
os.environ["OPENAI_API_VERSION"],
)
return chat_model


Expand Down

0 comments on commit 0250027

Please sign in to comment.