add X-Uncloseai-Client header for browser-toy identification

This commit is contained in:
russell@unturf.com 2026-02-22 18:46:18 -05:00
parent 3c5efd29c4
commit f4bb87eba8

View file

@ -102,6 +102,7 @@ export async function* sendMessage(message) {
headers = {
"Content-Type": "application/json",
Authorization: `Bearer ${API_KEY}`,
"X-Uncloseai-Client": "browser-toy",
};
model = getSelectedModel();
}
@ -275,6 +276,7 @@ export async function* sendMessageWithCustomHistory(customHistory) {
headers = {
"Content-Type": "application/json",
Authorization: `Bearer ${API_KEY}`,
"X-Uncloseai-Client": "browser-toy",
};
model = getSelectedModel();
}