Skip to content

Commit 65436cb

Browse files
committed
feat: add extra_headers to requests for App identification
1 parent 9a09569 commit 65436cb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/balatrollm/bot.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,14 @@ async def _make_llm_request_with_retries(
178178
for attempt in range(max_retries):
179179
try:
180180
request_data = {
181+
"extra_headers": {
182+
"HTTP-Referer": "https://github.com/S1M0N38/balatrollm",
183+
"X-Title": "BalatroLLM",
184+
},
181185
"model": self.config.model,
182186
"messages": messages,
183187
"tools": tools,
184188
"tool_choice": "auto",
185-
"extra_body": {"allowed_openai_params": ["reasoning_effort"]},
186189
}
187190
request_id = self.data_collector.write_request(request_data)
188191

0 commit comments

Comments
 (0)