feat: Add HTTP headers for API requests to enhance roleplay context
This commit is contained in:
parent
a1cddc11e4
commit
6f6f94ab98
@ -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 = (
|
||||
|
Loading…
x
Reference in New Issue
Block a user