Improve "\n\nHuman" prefix requirement detection for Anthropic (khanon/oai-reverse-proxy!63)
This commit is contained in:
parent
bbee056114
commit
0ce4582f3b
|
@ -436,7 +436,7 @@ async function maybeHandleMissingPreambleError(
|
|||
) {
|
||||
if (
|
||||
errorPayload.error?.type === "invalid_request_error" &&
|
||||
errorPayload.error?.message === 'prompt must start with "\n\nHuman:" turn'
|
||||
errorPayload.error?.message.startsWith('prompt must start with "\n\nHuman:" turn')
|
||||
) {
|
||||
req.log.warn(
|
||||
{ key: req.key?.hash },
|
||||
|
|
Loading…
Reference in New Issue