Need to add additional Header "username" to Open AI account in Open AI Chat Model Node

I am using an Open AI endpoint that requires an additional parameter “username” for authentication in the header along with the API Key ,
I tried using my own custom docker file by modifying file OpenAiApi.credentials.js
But these changes did not reflect on the UI

Can anyone let me know what am I doing wrong or what can be done

@Common_Account To fix your issue, instead of modifying n8n’s core files directly, create a custom credential type by developing a new n8n node package that adds the username field.

1 Like

Hey! I would suggest using the HTTP node. You can define a generic set of credentials (API key), and you can also pass your additional username as a Header. The HTTP node is often the best alternative when you find yourself limited by a node, as most are just HTTP requests with a a node on top :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.