🩹 set default useLegacyCompletionsEndpoint to undefined

This commit is contained in:
Nate Sesti 2024-04-18 15:35:17 -07:00
parent 78dd9af628
commit b683ba6750

View file

@ -38,12 +38,11 @@ const CHAT_ONLY_MODELS = [
];
class OpenAI extends BaseLLM {
public useLegacyCompletionsEndpoint = false;
public useLegacyCompletionsEndpoint: boolean | undefined = undefined;
constructor(options: LLMOptions) {
super(options);
this.useLegacyCompletionsEndpoint =
options.useLegacyCompletionsEndpoint ?? false;
this.useLegacyCompletionsEndpoint = options.useLegacyCompletionsEndpoint;
}
static providerName: ModelProvider = "openai";