190proof 1.0.13 → 1.0.14

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
@@ -31499,6 +31499,16 @@ async function callOpenAiWithRetries(identifier, openAiPayload, openAiConfig, re
31499
31499
  }
31500
31500
  openAiPayload.model = "gpt-4-turbo-2024-04-09" /* GPT4_0409 */;
31501
31501
  openAiPayload.temperature = 0.8;
31502
+ if (errorCode === "content_policy_violation") {
31503
+ openAiPayload.messages = openAiPayload.messages.map(
31504
+ (message) => {
31505
+ return {
31506
+ ...message,
31507
+ files: []
31508
+ };
31509
+ }
31510
+ );
31511
+ }
31502
31512
  if (i5 >= 2 && (openAiConfig == null ? void 0 : openAiConfig.service) === "azure" && errorCode === "content_filter") {
31503
31513
  console.log(
31504
31514
  identifier,