mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
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:
parent
181993f639
commit
7a07088802
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue