<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to use CrewAI with Databricks-hosted LLMs (not OpenAI) ? in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/how-to-use-crewai-with-databricks-hosted-llms-not-openai/m-p/144612#M1565</link>
    <description>&lt;P&gt;I am trying to use CrewAI to train an agent with a Databricks-hosted LLM (such as Llama 2 instruct or DBRX) via the&amp;nbsp;databricks_langchain&amp;nbsp;integration. I want CrewAI to use only my Databricks LLM and not requiring OpenAI authentication.&lt;/P&gt;&lt;P&gt;However, when I use&amp;nbsp;ChatDatabricks&amp;nbsp;to both the Agent and the Crew, CrewAI still tries to use OpenAI and fails with an authentication error. If I try to use custom llm, I get litellm.AuthenticationError: databricksException.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What is the&lt;STRONG&gt; correct way to configure CrewAI to use only a Databricks-hosted LLM ?&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Should I pass the LLM only to the Agent, or also to the Crew?&lt;/LI&gt;&lt;LI&gt;Are there any best practices or &lt;STRONG&gt;working examples&lt;/STRONG&gt; for this setup in Databricks notebooks?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jan 2026 16:25:27 GMT</pubDate>
    <dc:creator>lucami</dc:creator>
    <dc:date>2026-01-20T16:25:27Z</dc:date>
    <item>
      <title>How to use CrewAI with Databricks-hosted LLMs (not OpenAI) ?</title>
      <link>https://community.databricks.com/t5/generative-ai/how-to-use-crewai-with-databricks-hosted-llms-not-openai/m-p/144612#M1565</link>
      <description>&lt;P&gt;I am trying to use CrewAI to train an agent with a Databricks-hosted LLM (such as Llama 2 instruct or DBRX) via the&amp;nbsp;databricks_langchain&amp;nbsp;integration. I want CrewAI to use only my Databricks LLM and not requiring OpenAI authentication.&lt;/P&gt;&lt;P&gt;However, when I use&amp;nbsp;ChatDatabricks&amp;nbsp;to both the Agent and the Crew, CrewAI still tries to use OpenAI and fails with an authentication error. If I try to use custom llm, I get litellm.AuthenticationError: databricksException.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What is the&lt;STRONG&gt; correct way to configure CrewAI to use only a Databricks-hosted LLM ?&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Should I pass the LLM only to the Agent, or also to the Crew?&lt;/LI&gt;&lt;LI&gt;Are there any best practices or &lt;STRONG&gt;working examples&lt;/STRONG&gt; for this setup in Databricks notebooks?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2026 16:25:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/how-to-use-crewai-with-databricks-hosted-llms-not-openai/m-p/144612#M1565</guid>
      <dc:creator>lucami</dc:creator>
      <dc:date>2026-01-20T16:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use CrewAI with Databricks-hosted LLMs (not OpenAI) ?</title>
      <link>https://community.databricks.com/t5/generative-ai/how-to-use-crewai-with-databricks-hosted-llms-not-openai/m-p/144912#M1575</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/136214"&gt;@lucami&lt;/a&gt;&lt;/P&gt;&lt;P&gt;CrewAI defaults to OpenAI unless you explicitly override it.&lt;BR /&gt;You must pass your Databricks LLM to both the Agent and the Crew.&lt;/P&gt;&lt;P&gt;Create the Databricks LLM:&lt;BR /&gt;Use it in the Agent and in the Crew (this is critical)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 17:24:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/how-to-use-crewai-with-databricks-hosted-llms-not-openai/m-p/144912#M1575</guid>
      <dc:creator>lingareddy_Alva</dc:creator>
      <dc:date>2026-01-22T17:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use CrewAI with Databricks-hosted LLMs (not OpenAI) ?</title>
      <link>https://community.databricks.com/t5/generative-ai/how-to-use-crewai-with-databricks-hosted-llms-not-openai/m-p/146838#M1606</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/136214"&gt;@lucami&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To configure CrewAI to use only Databricks-hosted models without OpenAI dependencies&lt;/P&gt;
&lt;OL&gt;
&lt;LI class="css-1ksqbpg"&gt;
&lt;P&gt;Use CrewAI's LLM class&lt;SPAN&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;which wraps&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;litellm&lt;/CODE&gt;&lt;SPAN&gt;) rather than&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;ChatDatabricks&lt;/CODE&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="css-1ksqbpg"&gt;
&lt;P&gt;&lt;SPAN&gt;Pass the LLM at both levels: agents use it to complete their tasks, and the crew uses it to coordinate and orchestrate the overall workflow&lt;/SPAN&gt; (as&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/24053"&gt;@lingareddy_Alva&lt;/a&gt;&amp;nbsp;already suggested)&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="css-1ksqbpg"&gt;
&lt;P&gt;Enable MLflow tracing&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for comprehensive execution tracking -- this is super helpful to trace agent execution and model calls.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;A href="https://mlflow.org/docs/latest/genai/tracing/integrations/listing/crewai/" target="_self"&gt;CrewAI is supported in MLflow!&lt;/A&gt;&amp;nbsp; I tried to replicate the example in MLflow page to use Databricks hosted models &amp;gt;&amp;nbsp;&lt;A href="https://gist.github.com/pavannaidu/a61c25fe76b07601bee4aa5138aefffe" target="_blank" rel="noopener"&gt;https://gist.github.com/pavannaidu/a61c25fe76b07601bee4aa5138aefffe&lt;/A&gt;&amp;nbsp;and see the attached trace for model calls -- hope this helps!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-02-04 at 11.09.04 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/23626i3F3DE8876050FC1F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-02-04 at 11.09.04 AM.png" alt="Screenshot 2026-02-04 at 11.09.04 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 17:11:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/how-to-use-crewai-with-databricks-hosted-llms-not-openai/m-p/146838#M1606</guid>
      <dc:creator>pavannaidu</dc:creator>
      <dc:date>2026-02-04T17:11:18Z</dc:date>
    </item>
  </channel>
</rss>

