feat: add azure provider config (#1764)

This commit is contained in:
Patrick Erichsen 2024-07-17 11:59:11 -07:00 • committed by GitHub
parent f2a04ef3e9
commit c9635def23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

8
core/llm/llms/Azure.ts Normal file
View file

@ -0,0 +1,8 @@
import { ModelProvider } from "../../index.js";
import OpenAI from "./OpenAI.js";
class Azure extends OpenAI {
static providerName: ModelProvider = "azure";
}
export default Azure;

View file

@ -27,6 +27,7 @@ import LlamaCpp from "./LlamaCpp.js";
import Llamafile from "./Llamafile.js";
import Mistral from "./Mistral.js";
import Msty from "./Msty.js";
import Azure from "./Azure.js";
import Ollama from "./Ollama.js";
import OpenAI from "./OpenAI.js";
import Replicate from "./Replicate.js";
@ -124,6 +125,7 @@ const LLMs = [
Cloudflare,
Deepseek,
Msty,
Azure,
];
export async function llmFromDescription(