feat(openrouter): add app with create chat completion action

This commit is contained in:
Ali BARIN
2025-01-22 16:08:38 +00:00
parent 2163b0864d
commit ba82ba2632
16 changed files with 287 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
const addAuthHeader = ($, requestConfig) => {
if ($.auth.data?.apiKey) {
requestConfig.headers.Authorization = `Bearer ${$.auth.data.apiKey}`;
}
return requestConfig;
};
export default addAuthHeader;