continue-custom/core/llm/llms/Azure.ts
2024-11-19 23:07:49 -08:00

23 lines
514 B
TypeScript

import { LLMOptions, ModelProvider } from "../../index.js";
import OpenAI from "./OpenAI.js";
class Azure extends OpenAI {
static providerName: ModelProvider = "azure";
protected supportsPrediction(model: string): boolean {
return false;
}
static defaultOptions: Partial<LLMOptions> = {
apiVersion: "2024-02-15-preview",
apiType: "azure",
};
constructor(options: LLMOptions) {
super(options);
this.deployment = options.deployment ?? options.model;
}
}
export default Azure;