| 917 | 917 | request.body.messages.push(message); |
| 918 | 918 | } |
| 919 | 919 | |
| 920 | 920 | const postProcessTypeprocessedMessages = StringaddAssistantPrefix(postProcessPrompt(request.body.model)messages, PROMPT_PROCESSING_TYPE.endsWithSEMI_TOOLS, getPromptNames(request)), bodyParams.tools, '-reasonerprefix'); |
| 921 | | - ? PROMPT_PROCESSING_TYPE.STRICT_TOOLS |
| 922 | | - : PROMPT_PROCESSING_TYPE.SEMI_TOOLS; |
| 923 | | - const processedMessages = addAssistantPrefix(postProcessPrompt(request.body.messages, postProcessType, getPromptNames(request)), bodyParams.tools, 'prefix'); |
| 924 | 921 | |
| 925 | 922 | const requestBody = { |
| 926 | 923 | 'messages': processedMessages, |