remove redundant fields in azure provider

This commit is contained in:
Nate 2024-09-26 10:02:20 -07:00
parent a9e3c58c4b
commit da2c3d5189

View file

@ -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;