Skip to content

Commit 7a07088

Browse files
authored
Add pattern to support Databricks /invocations endpoints (#6317)
For using other models in Azure (e.g., Claude); you have to use Databricks, and the other patterns didn't match that.
1 parent 181993f commit 7a07088

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/services/code-index/embedders/openai-compatible.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ export class OpenAICompatibleEmbedder implements IEmbedder {
171171
const patterns = [
172172
// Azure OpenAI: /deployments/{deployment-name}/embeddings
173173
/\/deployments\/[^\/]+\/embeddings(\?|$)/,
174+
// Azure Databricks: /serving-endpoints/{endpoint-name}/invocations
175+
/\/serving-endpoints\/[^\/]+\/invocations(\?|$)/,
174176
// Direct endpoints: ends with /embeddings (before query params)
175177
/\/embeddings(\?|$)/,
176178
// Some providers use /embed instead of /embeddings

0 commit comments

Comments
 (0)