nsarrazin HF Staff commited on
Commit
d433f1d
·
unverified ·
1 Parent(s): 23c280b

fix: disable caching on OpenAI-compatible endpoint type

Browse files
src/lib/server/endpoints/openai/endpointOai.ts CHANGED
@@ -177,6 +177,7 @@ export async function endpointOai(
177
  body: { ...body, ...extraBody },
178
  headers: {
179
  "ChatUI-Conversation-ID": conversationId?.toString() ?? "",
 
180
  },
181
  });
182
 
@@ -267,6 +268,7 @@ export async function endpointOai(
267
  body: { ...body, ...extraBody },
268
  headers: {
269
  "ChatUI-Conversation-ID": conversationId?.toString() ?? "",
 
270
  },
271
  });
272
 
 
177
  body: { ...body, ...extraBody },
178
  headers: {
179
  "ChatUI-Conversation-ID": conversationId?.toString() ?? "",
180
+ "X-use-cache": "false",
181
  },
182
  });
183
 
 
268
  body: { ...body, ...extraBody },
269
  headers: {
270
  "ChatUI-Conversation-ID": conversationId?.toString() ?? "",
271
+ "X-use-cache": "false",
272
  },
273
  });
274