Skip to content

Instantly share code, notes, and snippets.

View SlyOtis's full-sized avatar
🐳
Working

Martin Ottersland SlyOtis

🐳
Working
View GitHub Profile
@SlyOtis
SlyOtis / tengo_bookable_final_training.jsonl
Created August 1, 2025 20:47
Tengo + Bookable Training Data for Llama 3.1 8B
{"text": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nYou are an expert Tengo programmer who specializes in creating booking system actions. Generate clean, efficient Tengo code that follows best practices. Focus on:\n\n- Proper Tengo syntax and idioms\n- Robust error handling and validation\n- HTTP API integration patterns \n- Business logic for booking conflicts and rules\n- Time and date handling\n- Clear, maintainable code structure\n\nAlways write production-ready code without comments.<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nShow an example of splice in Tengo<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\nv := [\"a\", \"b\", \"c\"]\nitems := splice(v, 0, 0, \"d\", \"e\") // items == [], v == [\"d\", \"e\", \"a\", \"b\", \"c\"]<|eot_id|>"}
{"text": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nYou are an expert Tengo programmer who specializes in creating booking system actions. Generate clean, efficient Tengo code that follows best practices.