190proof 1.0.41 → 1.0.43

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.mjs CHANGED
@@ -31582,10 +31582,11 @@ async function callOpenAIStream(identifier, openAiPayload, openAiConfig, chunkTi
31582
31582
  const azureConfig = openAiConfig.modelConfigMap[model];
31583
31583
  let endpoint;
31584
31584
  if (azureConfig.endpoint) {
31585
- endpoint = `${azureConfig.endpoint}/${azureConfig.deployment}/chat/completions?api-version=${azureConfig.apiVersion}`;
31585
+ endpoint = `${azureConfig.endpoint}/openai/deployments/${azureConfig.deployment}/chat/completions?api-version=${azureConfig.apiVersion}`;
31586
31586
  } else {
31587
31587
  endpoint = `${openAiConfig.baseUrl}/azure-openai/${azureConfig.resource}/${azureConfig.deployment}/chat/completions?api-version=${azureConfig.apiVersion}`;
31588
31588
  }
31589
+ console.log(identifier, "Using endpoint", endpoint);
31589
31590
  try {
31590
31591
  const stringifiedPayload = JSON.stringify({
31591
31592
  ...openAiPayload,