From 5561982051e26db36564b98bdc063ab2bf34ab48 Mon Sep 17 00:00:00 2001 From: Adam Brand <36556838+adambrand@users.noreply.github.com> Date: Mon, 28 Jul 2025 17:44:47 -0500 Subject: [PATCH] Add pattern to support Databricks /invocations endpoints For using other models in Azure (e.g., Claude); you have to use Databricks, and the other patterns didn't match that. --- src/services/code-index/embedders/openai-compatible.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/code-index/embedders/openai-compatible.ts b/src/services/code-index/embedders/openai-compatible.ts index 035f50f3867..06c4ba52823 100644 --- a/src/services/code-index/embedders/openai-compatible.ts +++ b/src/services/code-index/embedders/openai-compatible.ts @@ -171,6 +171,8 @@ export class OpenAICompatibleEmbedder implements IEmbedder { const patterns = [ // Azure OpenAI: /deployments/{deployment-name}/embeddings /\/deployments\/[^\/]+\/embeddings(\?|$)/, + // Azure Databricks: /serving-endpoints/{endpoint-name}/invocations + /\/serving-endpoints\/[^\/]+\/invocations(\?|$)/, // Direct endpoints: ends with /embeddings (before query params) /\/embeddings(\?|$)/, // Some providers use /embed instead of /embeddings