export function getExampleHelloWorld()

in src/lib/example-inputs/helloWorld.ts [51:61]


export function getExampleHelloWorld(templateStr: string): Record<string, unknown> | undefined {
	const template = new Template(templateStr);
	const variationSystemPrompt = variations.variation1_with_system_prompt.example;
	const variationSystemPromptRendered = template.render(
		transformInput(variationSystemPrompt, templateStr)
	);
	if (variationSystemPromptRendered.includes('You are a helpful assistant.')) {
		return variations.variation1_with_system_prompt.example;
	}
	return variations.variation2_without_system_prompt.example;
}