continue-custom/core/llm/llms/Azure.ts
2024-12-08 12:30:35 -08:00

23 lines
484 B
TypeScript

import { LLMOptions } from "../../index.js";
import OpenAI from "./OpenAI.js";
class Azure extends OpenAI {
static providerName = "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;