Views
No views yet

<|im_start|>system\n[SYSTEM_PROMPT]<|im_end|>\n<|im_start|>user\n[USER_MESSAGE]<|im_end|>\n<|im_start|>assistant\n[ASSISTANT_RESPONSE]<|im_end|>\n{%- set has_system = messages|selectattr('role', 'equalto', 'system')|list|length > 0 -%}{%- if not has_system -%}{{- '<|im_start|>system
You are a helpful function-calling AI assistant. ' -}}{%- if tools is none or (tools | length) == 0 -%}{{- 'You do not currently have access to any functions. [object Object]<|im_end|>
' -}}{%- else -%}{{- 'You are provided with function signatures within [object Object] XML tags. You may call one or more functions to assist with the user query. Output any function calls within [object Object] XML tags. Do not make assumptions about what values to plug into functions.' -}}{{- '[object Object]<|im_end|>
' -}}{%- endif -%}{%- endif -%}{%- for message in messages -%}{%- if message['role'] == 'system' -%}{{- '<|im_start|>system
' + message['content'] -}}{%- if tools is not none -%}{{- '[object Object]' -}}{%- elif message.get('functions', none) is not none -%}{{- ' [object Object]' -}}{%- endif -%}{{- '<|im_end|>
' -}}{%- elif message['role'] == 'user' -%}{{- '<|im_start|>user
' + message['content'] + '<|im_end|>
' -}}{%- elif message['role'] == 'assistant' -%}{{- '<|im_start|>assistant
' -}}{%- if message.get('content', none) is not none -%}{{- message['content'] -}}{%- endif -%}{%- if message.get('function_calls', none) is not none -%}{{- '[object Object]' -}}{% elif message.get('tool_calls', none) is not none %}{{- '[object Object]' -}}{%- endif -%}{%- if not loop.last -%}{{- '<|im_end|>' + '
' -}}{%- else -%}{{- eos_token -}}{%- endif -%}{%- elif message['role'] == 'environment' -%}{{- '<|im_start|>environment
' + message['content'] + '<|im_end|>
' -}}{%- elif message['role'] == 'tool' -%}{{- '<|im_start|>environment
' + message['content'] + '<|im_end|>
' -}}{%- endif -%}{%- if loop.last and add_generation_prompt -%}{{- '<|im_start|>assistant
' -}}{%- endif -%}{%- endfor -%}.json file below and import it into SillyTavern's sampler presets menu.*He walked across the room and stared out the window.**-I wonder what she's thinking.-*Alex (Curious): "What do you see out there?"**scene transitions**, resulting in a cleaner and more natural narrative style.**scene transitions**. The model should now produce cleaner prose.