190proof 1.0.40 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -53,6 +53,7 @@ interface OpenAIConfig {
53
53
  deployment: string;
54
54
  apiVersion: string;
55
55
  apiKey: string;
56
+ endpoint?: string;
56
57
  }>;
57
58
  }
58
59
  interface AnthropicAIConfig {
package/dist/index.d.ts CHANGED
@@ -53,6 +53,7 @@ interface OpenAIConfig {
53
53
  deployment: string;
54
54
  apiVersion: string;
55
55
  apiKey: string;
56
+ endpoint?: string;
56
57
  }>;
57
58
  }
58
59
  interface AnthropicAIConfig {
package/dist/index.js CHANGED
@@ -31586,7 +31586,12 @@ async function callOpenAIStream(identifier, openAiPayload, openAiConfig, chunkTi
31586
31586
  );
31587
31587
  }
31588
31588
  const azureConfig = openAiConfig.modelConfigMap[model];
31589
- const endpoint = `${openAiConfig.baseUrl}/azure-openai/${azureConfig.resource}/${azureConfig.deployment}/chat/completions?api-version=${azureConfig.apiVersion}`;
31589
+ let endpoint;
31590
+ if (azureConfig.endpoint) {
31591
+ endpoint = `${azureConfig.endpoint}/${azureConfig.deployment}/chat/completions?api-version=${azureConfig.apiVersion}`;
31592
+ } else {
31593
+ endpoint = `${openAiConfig.baseUrl}/azure-openai/${azureConfig.resource}/${azureConfig.deployment}/chat/completions?api-version=${azureConfig.apiVersion}`;
31594
+ }
31590
31595
  try {
31591
31596
  const stringifiedPayload = JSON.stringify({
31592
31597
  ...openAiPayload,