@peopl-health/nexus 3.2.10 → 3.2.11

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.
@@ -4,9 +4,9 @@ const predictionMetricsSchema = new mongoose.Schema({
4
4
  message_id: { type: String, required: true, index: true },
5
5
  numero: { type: String, required: true, index: true },
6
6
  assistant_id: { type: String, required: true, index: true },
7
- thread_id: { type: String, required: true },
8
- prediction_time_ms: { type: Number, required: true },
9
- retry_count: { type: Number, required: true, default: 1 },
7
+ thread_id: { type: String },
8
+ prediction_time_ms: { type: Number },
9
+ retry_count: { type: Number, default: 1 },
10
10
  completed: { type: Boolean, default: true },
11
11
  error: { type: String, default: null },
12
12
  timing_breakdown: { type: Object, default: {} }
@@ -302,9 +302,9 @@ class OpenAIResponsesProvider {
302
302
  logger.info('[OpenAIResponsesProvider] Prompt config', { promptConfig });
303
303
 
304
304
  const baseInstructions = instructions || additionalInstructions || '';
305
- const fullInstructions = baseInstructions
306
- ? `${baseInstructions}\n\n${this.defaults.brevityInstruction}`
307
- : this.defaults.brevityInstruction;
305
+ const fullInstructions = baseInstructions;
306
+ //? `${baseInstructions}\n\n${this.defaults.brevityInstruction}`
307
+ //: this.defaults.brevityInstruction;
308
308
 
309
309
  const makeAPICall = (inputData) => retryWithBackoff(() =>
310
310
  this.client.responses.create({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peopl-health/nexus",
3
- "version": "3.2.10",
3
+ "version": "3.2.11",
4
4
  "description": "Core messaging and assistant library for WhatsApp communication platforms",
5
5
  "keywords": [
6
6
  "whatsapp",