Skip to main content

Namespace: SynthiaPrompt

Functions

chat

chat(): TextGenerationPromptTemplate<ChatPrompt, string>

Formats a chat prompt as a Synthia prompt.

Synthia prompt template:

SYSTEM: system message
USER: user message
ASSISTANT: assistant message

Returns

TextGenerationPromptTemplate<ChatPrompt, string>

Defined in

packages/modelfusion/src/model-function/generate-text/prompt-template/SynthiaPromptTemplate.ts:56


instruction

instruction(): TextGenerationPromptTemplate<InstructionPrompt, string>

Formats an instruction prompt as a Synthia prompt.

Synthia prompt template:

SYSTEM: system message
USER: instruction
ASSISTANT: response prefix

Returns

TextGenerationPromptTemplate<InstructionPrompt, string>

Defined in

packages/modelfusion/src/model-function/generate-text/prompt-template/SynthiaPromptTemplate.ts:31


text

text(): TextGenerationPromptTemplate<string, string>

Formats a text prompt as a Synthia text prompt.

Synthia prompt template:

USER: text
ASSISTANT:

Returns

TextGenerationPromptTemplate<string, string>

Defined in

packages/modelfusion/src/model-function/generate-text/prompt-template/SynthiaPromptTemplate.ts:16