mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-03 17:09:58 -06:00
Co-authored-by: Johannes <johannes@formbricks.com> Co-authored-by: Piyush Gupta <piyushguptaa2z123@gmail.com> Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
15 lines
561 B
TypeScript
15 lines
561 B
TypeScript
import { createAzure } from "@ai-sdk/azure";
|
|
import { env } from "./env";
|
|
|
|
export const llmModel = createAzure({
|
|
resourceName: env.AI_AZURE_LLM_RESSOURCE_NAME, // Azure resource name
|
|
apiKey: env.AI_AZURE_LLM_API_KEY, // Azure API key
|
|
})(env.AI_AZURE_LLM_DEPLOYMENT_ID || "llm");
|
|
|
|
export const embeddingsModel = createAzure({
|
|
resourceName: env.AI_AZURE_EMBEDDINGS_RESSOURCE_NAME, // Azure resource name
|
|
apiKey: env.AI_AZURE_EMBEDDINGS_API_KEY, // Azure API key
|
|
}).embedding(env.AI_AZURE_EMBEDDINGS_DEPLOYMENT_ID || "embeddings", {
|
|
dimensions: 512,
|
|
});
|