feat: complete the Homarr provider endpoint
This commit is contained in:
1 parent
019bd11017
commit
83968be07e
10 files changed
+457
-18
No files matched your search
@@ -164,7 +164,7 @@ const getProviderHeaders = (configuration: AssistantConfiguration) => {
|
||||
}
|
||||
if (configuration.provider === "openrouter") {
|
||||
headers["HTTP-Referer"] ??= "https://homarr.dev";
|
||||
headers["X-Title"] ??= "Homarr Assistant";
|
||||
headers["X-OpenRouter-Title"] ??= "Homarr AI Assistant";
|
||||
}
|
||||
return { ...headers, ...decryptCustomHeaders(configuration.encryptedHeaders) };
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user