瀏覽代碼

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.
Adam Brand 5 月之前
父節點
當前提交
7a07088802
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/services/code-index/embedders/openai-compatible.ts

+ 2 - 0
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