Skip to main content
Component: Prompts - Multi-model prompt formatting Module: gaia.chat.prompts Import: from gaia.chat.prompts import Prompts

Overview

Prompts class provides model-specific prompt formatting for 14+ LLM families. Each model has unique conversation format requirements (chat templates), and Prompts handles the conversion automatically. Supported Models:
  • Llama 3 / 3.2
  • Llama 2
  • Qwen / Qwen2.5 / Qwen3
  • Mistral
  • Phi-3
  • Gemma
  • ChatGLM
  • DeepSeek R1
  • GPT-OSS
  • LFM2 (Liquid AI)
  • Default (generic format)

API Specification

Prompts Class


Usage Examples

Example 1: Format Conversation

Example 2: Custom System Prompt

Example 3: Model Name Matching


Model-Specific Formats

Llama 3 Format

Qwen Format

Mistral Format


Testing Requirements


Dependencies


Prompts Class Technical Specification