Skip to content
Discussion options

You must be logged in to vote

Hey, with 1.28.0, you can now leave settings.chatGptClient.openaiApiKey blank and provide it in the POST request like this:

{
    "message": "hi",
    "clientOptions": {
        "openaiApiKey": "sk-xxxxxxx"
    }
}

Please make sure to read through the documentation for the clientOptions parameter in the readme's Endpoints > POST /conversation section.

Additionally, you should read through the comments for perMessageClientOptionsWhitelist in settings.example.js to ensure you only whitelist the options you want users to be able to override (otherwise they can do things like change the model or enable the client's debug mode, etc.).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Henry910
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants