Skip to content

Conversation

danny-avila
Copy link
Owner

  • Add support for user-provided OpenAI API key by setting OPENAI_KEY to "user_provided" in .env.example
  • Pass oaiApiKey to titleConvo function in titleConvo.js
  • Pass oaiApiKey to askClient function in askOpenAI.js
  • Modify openAI object in endpoints.js to include userProvide property based on whether OPENAI_KEY is set to "user_provided" or not.

- Add support for user-provided OpenAI API key by setting OPENAI_KEY to
  "user_provided" in .env.example
- Pass oaiApiKey to titleConvo function in titleConvo.js
- Pass oaiApiKey to askClient function in askOpenAI.js
- Modify openAI object in endpoints.js to include userProvide property
  based on whether OPENAI_KEY is set to "user_provided" or not.
@danny-avila danny-avila merged commit 26152d7 into main May 18, 2023
@danny-avila danny-avila deleted the fix-user-key branch May 18, 2023 01:58
Copy link
Contributor

@techwithanirudh techwithanirudh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be awesome if there was a extra environment variable named OPENAI_USER_INPUT=false/true that would allow users to set their own key, instead of setting it as user_provided

techwithanirudh

This comment was marked as duplicate.

danorlando pushed a commit to danorlando/librechat that referenced this pull request Jun 1, 2023
)

- Add support for user-provided OpenAI API key by setting OPENAI_KEY to
  "user_provided" in .env.example
- Pass oaiApiKey to titleConvo function in titleConvo.js
- Pass oaiApiKey to askClient function in askOpenAI.js
- Modify openAI object in endpoints.js to include userProvide property
  based on whether OPENAI_KEY is set to "user_provided" or not.
cnkang pushed a commit to cnkang/LibreChat that referenced this pull request Feb 6, 2024
)

- Add support for user-provided OpenAI API key by setting OPENAI_KEY to
  "user_provided" in .env.example
- Pass oaiApiKey to titleConvo function in titleConvo.js
- Pass oaiApiKey to askClient function in askOpenAI.js
- Modify openAI object in endpoints.js to include userProvide property
  based on whether OPENAI_KEY is set to "user_provided" or not.
jinzishuai pushed a commit to aitok-ai/LibreChat that referenced this pull request May 20, 2024
)

- Add support for user-provided OpenAI API key by setting OPENAI_KEY to
  "user_provided" in .env.example
- Pass oaiApiKey to titleConvo function in titleConvo.js
- Pass oaiApiKey to askClient function in askOpenAI.js
- Modify openAI object in endpoints.js to include userProvide property
  based on whether OPENAI_KEY is set to "user_provided" or not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants