🩹 set default useLegacyCompletionsEndpoint to undefined
This commit is contained in:
parent
78dd9af628
commit
b683ba6750
1 changed files with 2 additions and 3 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue