Pass app headers to featherless

This commit is contained in:
Cohee
2024-08-01 23:03:32 +03:00
parent 8660c96412
commit 9cd59d2e4b
2 changed files with 9 additions and 4 deletions

View File

@ -348,6 +348,11 @@ const OPENROUTER_HEADERS = {
'X-Title': 'SillyTavern',
};
const FEATHERLESS_HEADERS = {
'HTTP-Referer': 'https://sillytavern.app',
'X-Title': 'SillyTavern',
};
const OPENROUTER_KEYS = [
'max_tokens',
'temperature',
@ -432,4 +437,5 @@ module.exports = {
OPENROUTER_KEYS,
VLLM_KEYS,
FEATHERLESS_KEYS,
FEATHERLESS_HEADERS,
};