API Error: API returned an empty or malformed response (HTTP 200) — check for a proxy or gateway intercepting the request
This commit is contained in:
@@ -239,6 +239,11 @@ export interface BuildSystemPromptOptions {
|
|||||||
/** @deprecated Use `mode` instead. */
|
/** @deprecated Use `mode` instead. */
|
||||||
includeMediaInstructions?: boolean;
|
includeMediaInstructions?: boolean;
|
||||||
correction?: { error: string; preview: string };
|
correction?: { error: string; preview: string };
|
||||||
|
/**
|
||||||
|
* Recent corrected false positives from the DB, formatted as few-shot
|
||||||
|
* examples. Injected between static examples and output instructions.
|
||||||
|
*/
|
||||||
|
correctedExamples?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function buildSystemPrompt(options: BuildSystemPromptOptions): string {
|
export function buildSystemPrompt(options: BuildSystemPromptOptions): string {
|
||||||
@@ -247,6 +252,7 @@ export function buildSystemPrompt(options: BuildSystemPromptOptions): string {
|
|||||||
mode,
|
mode,
|
||||||
includeMediaInstructions,
|
includeMediaInstructions,
|
||||||
correction,
|
correction,
|
||||||
|
correctedExamples,
|
||||||
} = options;
|
} = options;
|
||||||
|
|
||||||
// Backward compatibility: if mode is not set but includeMediaInstructions is,
|
// Backward compatibility: if mode is not set but includeMediaInstructions is,
|
||||||
|
|||||||
Reference in New Issue
Block a user