fix useLegacyCompletionsEndpoint for azure provider

This commit is contained in:
Nate 2024-09-07 17:21:57 -07:00
parent 1dcde6d734
commit aef87c7662

View file

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