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.js CHANGED
@@ -31592,6 +31592,7 @@ async function callOpenAIStream(identifier, openAiPayload, openAiConfig, chunkTi
31592
31592
  } else {
31593
31593
  endpoint = `${openAiConfig.baseUrl}/azure-openai/${azureConfig.resource}/${azureConfig.deployment}/chat/completions?api-version=${azureConfig.apiVersion}`;
31594
31594
  }
31595
+ console.log(identifier, "Using endpoint", endpoint);
31595
31596
  try {
31596
31597
  const stringifiedPayload = JSON.stringify({
31597
31598
  ...openAiPayload,
@@ -31619,7 +31620,7 @@ async function callOpenAIStream(identifier, openAiPayload, openAiConfig, chunkTi
31619
31620
  });
31620
31621
  } else {
31621
31622
  console.log(identifier, "Using OpenAI service", openAiPayload.model);
31622
- const endpoint = `${openAiConfig.baseUrl}/openai/chat/completions`;
31623
+ const endpoint = `https://api.openai.com/v1/chat/completions`;
31623
31624
  if (openAiConfig.orgId) {
31624
31625
  console.log(identifier, "Using orgId", openAiConfig.orgId);
31625
31626
  }