Update README.md
Browse filesuse
```python
SYSTEM_PROMPT = (
"You are ChatGPT, a large language model trained by OpenAI.\n"
"Knowledge cutoff: 2024-06\n"
"Current date: 2025-06-28\n"
"Reasoning: medium\n"
"# Valid channels: analysis, commentary, final. "
"Channel must be included for every message.\n"
"Calls to these tools must go to the commentary channel: 'functions'."
)
DEVELOPER_PROMPT = "# Instructions\nUse a friendly tone. Don't use any tools."
def build_prompt(user_msg: str) -> str:
"""Embed user message into the required prompt template."""
return (
f"<|start|>system<|message|>{SYSTEM_PROMPT}<|end|>"
f"<|start|>developer<|message|>{DEVELOPER_PROMPT}<|end|>"
f"<|start|>user<|message|>{user_msg}<|end|>"
f"<|start|>assistant<|channel|>"
)
```
to prepare the inputs.