From aef87c7662b6b307a0bd5ceec9033c46601fcc40 Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 7 Sep 2024 17:21:57 -0700 Subject: [PATCH] fix useLegacyCompletionsEndpoint for azure provider --- core/llm/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/llm/index.ts b/core/llm/index.ts index 94e9ee322..b426b146a 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -63,7 +63,7 @@ export abstract class BaseLLM implements ILLM { } supportsCompletions(): boolean { - if (this.providerName === "openai") { + if (["openai", "azure"].includes(this.providerName)) { if ( this.apiBase?.includes("api.groq.com") || this.apiBase?.includes("api.mistral.ai") ||