<?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 AiGatewayConfig non backward compatibly issue from 16.3 to 16.4 in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/aigatewayconfig-non-backward-compatibly-issue-from-16-3-to-16-4/m-p/137743#M4394</link>
    <description>&lt;P&gt;We're moving form version 16.3 to version 16.4 LTD, and looks like there is a non backward compatibly issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the import that I have in my code&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;databricks.sdk.service.serving &lt;SPAN&gt;import &lt;/SPAN&gt;(   &lt;SPAN&gt;# type: ignore # noqa&lt;BR /&gt;&lt;/SPAN&gt;    ServedModelInput,   &lt;SPAN&gt;# type: ignore # noqa&lt;BR /&gt;&lt;/SPAN&gt;    EndpointCoreConfigInput,   &lt;SPAN&gt;# type: ignore # noqa&lt;BR /&gt;&lt;/SPAN&gt;    TrafficConfig,   &lt;SPAN&gt;# type: ignore # noqa&lt;BR /&gt;&lt;/SPAN&gt;    Route,   &lt;SPAN&gt;# type: ignore # noqa&lt;BR /&gt;&lt;/SPAN&gt;    AiGatewayConfig,   &lt;SPAN&gt;# type: ignore # noqa&lt;BR /&gt;&lt;/SPAN&gt;    AiGatewayInferenceTableConfig,   &lt;SPAN&gt;# type: ignore # noqa&lt;BR /&gt;&lt;/SPAN&gt;)   &lt;SPAN&gt;# type: ignore # noqa&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;After the move in my model mosaic code I have this error&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ImportError: cannot import name 'AiGatewayConfig' from 'databricks.sdk.service.serving' (/databricks/python/lib/python3.12/site-packages/databricks/sdk/service/serving.py)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Nov 2025 12:08:53 GMT</pubDate>
    <dc:creator>pablogarcia</dc:creator>
    <dc:date>2025-11-05T12:08:53Z</dc:date>
    <item>
      <title>AiGatewayConfig non backward compatibly issue from 16.3 to 16.4</title>
      <link>https://community.databricks.com/t5/administration-architecture/aigatewayconfig-non-backward-compatibly-issue-from-16-3-to-16-4/m-p/137743#M4394</link>
      <description>&lt;P&gt;We're moving form version 16.3 to version 16.4 LTD, and looks like there is a non backward compatibly issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the import that I have in my code&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;databricks.sdk.service.serving &lt;SPAN&gt;import &lt;/SPAN&gt;(   &lt;SPAN&gt;# type: ignore # noqa&lt;BR /&gt;&lt;/SPAN&gt;    ServedModelInput,   &lt;SPAN&gt;# type: ignore # noqa&lt;BR /&gt;&lt;/SPAN&gt;    EndpointCoreConfigInput,   &lt;SPAN&gt;# type: ignore # noqa&lt;BR /&gt;&lt;/SPAN&gt;    TrafficConfig,   &lt;SPAN&gt;# type: ignore # noqa&lt;BR /&gt;&lt;/SPAN&gt;    Route,   &lt;SPAN&gt;# type: ignore # noqa&lt;BR /&gt;&lt;/SPAN&gt;    AiGatewayConfig,   &lt;SPAN&gt;# type: ignore # noqa&lt;BR /&gt;&lt;/SPAN&gt;    AiGatewayInferenceTableConfig,   &lt;SPAN&gt;# type: ignore # noqa&lt;BR /&gt;&lt;/SPAN&gt;)   &lt;SPAN&gt;# type: ignore # noqa&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;After the move in my model mosaic code I have this error&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ImportError: cannot import name 'AiGatewayConfig' from 'databricks.sdk.service.serving' (/databricks/python/lib/python3.12/site-packages/databricks/sdk/service/serving.py)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2025 12:08:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/aigatewayconfig-non-backward-compatibly-issue-from-16-3-to-16-4/m-p/137743#M4394</guid>
      <dc:creator>pablogarcia</dc:creator>
      <dc:date>2025-11-05T12:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: AiGatewayConfig non backward compatibly issue from 16.3 to 16.4</title>
      <link>https://community.databricks.com/t5/administration-architecture/aigatewayconfig-non-backward-compatibly-issue-from-16-3-to-16-4/m-p/138216#M4430</link>
      <description>&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;The error indicates that&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;AiGatewayConfig&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;cannot be imported from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;databricks.sdk.service.serving&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;after upgrading from version 16.3 to 16.4 LTD, signaling a breaking change or removal in the SDK.&lt;/P&gt;
&lt;H2 class="mb-2 mt-4 font-display font-semimedium text-base first:mt-0"&gt;Why This Happens&lt;/H2&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;With minor version updates, Databricks SDK sometimes refactors, renames, or removes classes and methods—especially in non-LTS or major public releases. The absence of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;AiGatewayConfig&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;suggests it was either:&lt;/P&gt;
&lt;UL class="marker:text-quiet list-disc"&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;Removed, renamed, or moved to a different module in 16.4 LTD.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;Deprecated and replaced by another configuration object.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H2 class="mb-2 mt-4 font-display font-semimedium text-base first:mt-0"&gt;How to Resolve&lt;/H2&gt;
&lt;H2 class="mb-2 mt-4 font-display font-semimedium text-base first:mt-0"&gt;1. Check SDK Release Notes&lt;/H2&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;Look up the official Databricks SDK release notes or changelog for version 16.4 LTD for explicit details about the removal or migration of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;AiGatewayConfig&lt;/CODE&gt;.&lt;/P&gt;
&lt;H2 class="mb-2 mt-4 font-display font-semimedium text-base first:mt-0"&gt;2. Inspect the Module&lt;/H2&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;Try the following in a Databricks cell or Python shell to see available names:&lt;/P&gt;
&lt;DIV class="w-full md:max-w-[90vw]"&gt;
&lt;DIV class="codeWrapper text-light selection:text-super selection:bg-super/10 my-md relative flex flex-col rounded font-mono text-sm font-normal bg-subtler"&gt;
&lt;DIV class="translate-y-xs -translate-x-xs bottom-xl mb-xl flex h-0 items-start justify-end md:sticky md:top-[100px]"&gt;
&lt;DIV class="overflow-hidden rounded-full border-subtlest ring-subtlest divide-subtlest bg-base"&gt;
&lt;DIV class="border-subtlest ring-subtlest divide-subtlest bg-subtler"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="-mt-xl"&gt;
&lt;DIV&gt;
&lt;DIV class="text-quiet bg-subtle py-xs px-sm inline-block rounded-br rounded-tl-[3px] font-thin" data-testid="code-language-indicator"&gt;python&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;CODE&gt;&lt;SPAN class="token token"&gt;import&lt;/SPAN&gt; databricks&lt;SPAN class="token token punctuation"&gt;.&lt;/SPAN&gt;sdk&lt;SPAN class="token token punctuation"&gt;.&lt;/SPAN&gt;service&lt;SPAN class="token token punctuation"&gt;.&lt;/SPAN&gt;serving &lt;SPAN class="token token"&gt;as&lt;/SPAN&gt; serving
&lt;SPAN class="token token"&gt;dir&lt;/SPAN&gt;&lt;SPAN class="token token punctuation"&gt;(&lt;/SPAN&gt;serving&lt;SPAN class="token token punctuation"&gt;)&lt;/SPAN&gt;
&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;This helps identify if&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;AiGatewayConfig&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is renamed, moved, or gone.&lt;/P&gt;
&lt;H2 class="mb-2 mt-4 font-display font-semimedium text-base first:mt-0"&gt;3. Update Your Imports&lt;/H2&gt;
&lt;UL class="marker:text-quiet list-disc"&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;If&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;AiGatewayConfig&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is moved, import it from its new location.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;If it's replaced, update your code to use the new class/config.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H2 class="mb-2 mt-4 font-display font-semimedium text-base first:mt-0"&gt;4. Fallbacks&lt;/H2&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;If you cannot find an alternative, examine the SDK documentation for examples of endpoint creation or AI Gateway configuration in version 16.4 LTD.&lt;/P&gt;
&lt;H2 class="mb-2 mt-4 font-display font-semimedium text-base first:mt-0"&gt;Quick Fix&lt;/H2&gt;
&lt;UL class="marker:text-quiet list-disc"&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;&lt;STRONG&gt;Remove or replace&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;AiGatewayConfig&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;import&lt;/STRONG&gt;: If your code doesn't depend directly on AI Gateway functionality, simply remove the import.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;&lt;STRONG&gt;Find replacement class&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(if needed): Scan documentation for the correct configuration construct.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H2 class="mb-2 mt-4 font-display font-semimedium text-base first:mt-0"&gt;Example Update&lt;/H2&gt;
&lt;DIV class="w-full md:max-w-[90vw]"&gt;
&lt;DIV class="codeWrapper text-light selection:text-super selection:bg-super/10 my-md relative flex flex-col rounded font-mono text-sm font-normal bg-subtler"&gt;
&lt;DIV class="translate-y-xs -translate-x-xs bottom-xl mb-xl flex h-0 items-start justify-end md:sticky md:top-[100px]"&gt;
&lt;DIV class="overflow-hidden rounded-full border-subtlest ring-subtlest divide-subtlest bg-base"&gt;
&lt;DIV class="border-subtlest ring-subtlest divide-subtlest bg-subtler"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="-mt-xl"&gt;
&lt;DIV&gt;
&lt;DIV class="text-quiet bg-subtle py-xs px-sm inline-block rounded-br rounded-tl-[3px] font-thin" data-testid="code-language-indicator"&gt;python&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;CODE&gt;&lt;SPAN class="token token"&gt;from&lt;/SPAN&gt; databricks&lt;SPAN class="token token punctuation"&gt;.&lt;/SPAN&gt;sdk&lt;SPAN class="token token punctuation"&gt;.&lt;/SPAN&gt;service&lt;SPAN class="token token punctuation"&gt;.&lt;/SPAN&gt;serving &lt;SPAN class="token token"&gt;import&lt;/SPAN&gt; &lt;SPAN class="token token punctuation"&gt;(&lt;/SPAN&gt;
    ServedModelInput&lt;SPAN class="token token punctuation"&gt;,&lt;/SPAN&gt;
    EndpointCoreConfigInput&lt;SPAN class="token token punctuation"&gt;,&lt;/SPAN&gt;
    TrafficConfig&lt;SPAN class="token token punctuation"&gt;,&lt;/SPAN&gt;
    Route&lt;SPAN class="token token punctuation"&gt;,&lt;/SPAN&gt;
    &lt;SPAN class="token token"&gt;# AiGatewayConfig,   # Remove this if not present&lt;/SPAN&gt;
    AiGatewayInferenceTableConfig&lt;SPAN class="token token punctuation"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="token token punctuation"&gt;)&lt;/SPAN&gt;
&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;or, if you find a new location:&lt;/P&gt;
&lt;DIV class="w-full md:max-w-[90vw]"&gt;
&lt;DIV class="codeWrapper text-light selection:text-super selection:bg-super/10 my-md relative flex flex-col rounded font-mono text-sm font-normal bg-subtler"&gt;
&lt;DIV class="translate-y-xs -translate-x-xs bottom-xl mb-xl flex h-0 items-start justify-end md:sticky md:top-[100px]"&gt;
&lt;DIV class="overflow-hidden rounded-full border-subtlest ring-subtlest divide-subtlest bg-base"&gt;
&lt;DIV class="border-subtlest ring-subtlest divide-subtlest bg-subtler"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="-mt-xl"&gt;
&lt;DIV&gt;
&lt;DIV class="text-quiet bg-subtle py-xs px-sm inline-block rounded-br rounded-tl-[3px] font-thin" data-testid="code-language-indicator"&gt;python&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;CODE&gt;&lt;SPAN class="token token"&gt;from&lt;/SPAN&gt; databricks&lt;SPAN class="token token punctuation"&gt;.&lt;/SPAN&gt;sdk&lt;SPAN class="token token punctuation"&gt;.&lt;/SPAN&gt;service&lt;SPAN class="token token punctuation"&gt;.&lt;/SPAN&gt;ai_gateway &lt;SPAN class="token token"&gt;import&lt;/SPAN&gt; AiGatewayConfig
&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;&lt;EM&gt;(Replace with actual path if changed.)&lt;/EM&gt;&lt;/P&gt;
&lt;H2 class="mb-2 mt-4 font-display font-semimedium text-base first:mt-0"&gt;Next Steps&lt;/H2&gt;
&lt;UL class="marker:text-quiet list-disc"&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;Check if you use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;AiGatewayConfig&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;directly; if so, adapt to the new version.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="py-0 my-0 prose-p:pt-0 prose-p:mb-2 prose-p:my-0 [&amp;amp;&amp;gt;p]:pt-0 [&amp;amp;&amp;gt;p]:mb-2 [&amp;amp;&amp;gt;p]:my-0"&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;For persistent issues, consult Databricks’ official migration guides.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H2 class="mb-2 mt-4 font-display font-semimedium text-base first:mt-0"&gt;Recommendation&lt;/H2&gt;
&lt;P class="my-2 [&amp;amp;+p]:mt-4 [&amp;amp;_strong:has(+br)]:inline-block [&amp;amp;_strong:has(+br)]:pb-2"&gt;Always validate imports and update code with each SDK upgrade, referencing release notes for deprecated or migrated features.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Nov 2025 13:06:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/aigatewayconfig-non-backward-compatibly-issue-from-16-3-to-16-4/m-p/138216#M4430</guid>
      <dc:creator>mark_ott</dc:creator>
      <dc:date>2025-11-08T13:06:38Z</dc:date>
    </item>
  </channel>
</rss>

