feat: Add HTTP headers for API requests to enhance roleplay context

This commit is contained in:
Slipstream 2025-05-15 12:49:04 -06:00
parent a1cddc11e4
commit 6f6f94ab98
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -44,7 +44,9 @@ async def _teto_reply_ai_with_messages(messages, system_mode="reply"):
url = "https://openrouter.ai/api/v1/chat/completions"
headers = {
"Authorization": f"Bearer {api_key}",
"Content-Type": "application/json"
"Content-Type": "application/json",
"HTTP-Referer": "https://github.com/Slipstreamm/discordbot",
"X-Title": "Roleplay Teto AI"
}
# Adjusted system prompt for a more general roleplay context, keeping Teto's persona
system_prompt = (