Added "custom_prompt_post_processing" to custom-request (#4639)

d48a3639edd05e71d9fcb53b08e7343b12f27f81

bmen25124 <bmen25124@gmail.com>

Signed
3 files changed, +5 -1Ignore whitespace
public/scripts/custom-request.js+3 -1
@@ -49,6 +49,7 @@ import EventSourceStream from './sse-stream.js';
4949 * @property {string} [custom_url] - Optional custom URL
5050 * @property {string} [reverse_proxy] - Optional reverse proxy URL
5151 * @property {string} [proxy_password] - Optional proxy password
52+ * @property {string} [custom_prompt_post_processing] - Optional custom prompt post-processing
5253 */
5354
5455/** @typedef {Record<string, any> & ChatCompletionPayloadBase} ChatCompletionPayload */
@@ -414,7 +415,7 @@ export class ChatCompletionService {
414415 * @param {ChatCompletionPayload} custom
415416 * @returns {ChatCompletionPayload}
416417 */
417418 static createRequestData({ stream = false, messages, model, chat_completion_source, max_tokens, temperature, custom_url, reverse_proxy, proxy_password, custom_prompt_post_processing, ...props }) {
418419 const payload = {
419420 stream,
420421 messages,
@@ -425,6 +426,7 @@ export class ChatCompletionService {
425426 custom_url,
426427 reverse_proxy,
427428 proxy_password,
429+ custom_prompt_post_processing,
428430 use_makersuite_sysprompt: true,
429431 claude_use_sysprompt: true,
430432 ...props,
public/scripts/extensions/connection-manager/index.js+1 -0
@@ -167,6 +167,7 @@ const profilesProvider = () => [
167167 * @property {string} [stop-strings] Custom Stopping Strings
168168 * @property {string} [start-reply-with] Start Reply With
169169 * @property {string} [reasoning-template] Reasoning Template
170+ * @property {string} [prompt-post-processing] Prompt Post-Processing
170171 * @property {string[]} [exclude] Commands to exclude
171172 */
172173
public/scripts/extensions/shared.js+1 -0
@@ -410,6 +410,7 @@ export class ConnectionManagerRequestService {
410410 custom_url: profile['api-url'],
411411 reverse_proxy: proxyPreset?.url,
412412 proxy_password: proxyPreset?.password,
413+ custom_prompt_post_processing: profile['prompt-post-processing'],
413414 ...overridePayload,
414415 }, {
415416 presetName: includePreset ? profile.preset : undefined,