190proof 1.0.42 → 1.0.44

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
@@ -31586,6 +31586,7 @@ async function callOpenAIStream(identifier, openAiPayload, openAiConfig, chunkTi
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,
@@ -31613,7 +31614,7 @@ async function callOpenAIStream(identifier, openAiPayload, openAiConfig, chunkTi
31613
31614
  });
31614
31615
  } else {
31615
31616
  console.log(identifier, "Using OpenAI service", openAiPayload.model);
31616
- const endpoint = `${openAiConfig.baseUrl}/openai/chat/completions`;
31617
+ const endpoint = `https://api.openai.com/v1/chat/completions`;
31617
31618
  if (openAiConfig.orgId) {
31618
31619
  console.log(identifier, "Using orgId", openAiConfig.orgId);
31619
31620
  }