remove redundant fields in azure provider
This commit is contained in:
parent
a9e3c58c4b
commit
da2c3d5189
1 changed files with 11 additions and 1 deletions
|
|
@ -1,8 +1,18 @@
|
|||
import { ModelProvider } from "../../index.js";
|
||||
import { LLMOptions, ModelProvider } from "../../index.js";
|
||||
import OpenAI from "./OpenAI.js";
|
||||
|
||||
class Azure extends OpenAI {
|
||||
static providerName: ModelProvider = "azure";
|
||||
|
||||
static defaultOptions: Partial<LLMOptions> = {
|
||||
apiVersion: "2024-02-15-preview",
|
||||
apiType: "azure",
|
||||
};
|
||||
|
||||
constructor(options: LLMOptions) {
|
||||
super(options);
|
||||
this.engine = options.model;
|
||||
}
|
||||
}
|
||||
|
||||
export default Azure;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue