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.
This commit is contained in:
Adam Brand 2025-07-30 17:31:26 -05:00 committed by GitHub
parent 181993f639
commit 7a07088802
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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