mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
🖼️ feat(DALL-E): Azure OpenAI Support & New Config Variables (#1586)
* feat(DALL-E-3/DALL-E-2): Azure OpenAI support. New Version specific environment credentials: - DALLEx_SYSTEM_PROMPT= - DALLEx_AZURE_API_VERSION= - DALLEx_BASEURL= - DALLEx_API_KEY= - replace `x` with `3` or `2` * docs: update docs based on new env vars and Azure OpenAI support for DALL-E * docs: breaking change for user provided DALLE_API_KEY: - **DALL-E Update**: user-provided keys for DALL-E are now specific to each DALL-E version, i.e.: and - Note: will work for both DALL-E-3 and DALL-E-2 when the admin provides the credential; in other words, this may only affect your users if DALLE_API_KEY is not set in the file. In this case, they will simply have to uninstall the plugin, and provide their API key again. * refactor: use process.env at runtime instead of from memory to fix testing DALLE3.spec.js, adjust test
This commit is contained in:
parent
a8d6bfde7a
commit
ab3339210a
8 changed files with 204 additions and 78 deletions
19
.env.example
19
.env.example
|
|
@ -143,11 +143,22 @@ AZURE_AI_SEARCH_SEARCH_OPTION_QUERY_TYPE=
|
|||
AZURE_AI_SEARCH_SEARCH_OPTION_TOP=
|
||||
AZURE_AI_SEARCH_SEARCH_OPTION_SELECT=
|
||||
|
||||
# DALL·E 3
|
||||
# DALL·E
|
||||
#----------------
|
||||
# DALLE_API_KEY=
|
||||
# DALLE3_SYSTEM_PROMPT="Your System Prompt here"
|
||||
# DALLE_REVERSE_PROXY=
|
||||
# DALLE_API_KEY= # Key for both DALL-E-2 and DALL-E-3
|
||||
# DALLE3_API_KEY= # Key for DALL-E-3 only
|
||||
# DALLE2_API_KEY= # Key for DALL-E-2 only
|
||||
# DALLE3_SYSTEM_PROMPT="Your DALL-E-3 System Prompt here"
|
||||
# DALLE2_SYSTEM_PROMPT="Your DALL-E-2 System Prompt here"
|
||||
# DALLE_REVERSE_PROXY= # Reverse proxy for DALL-E-2 and DALL-E-3
|
||||
# DALLE3_BASEURL= # Base URL for DALL-E-3
|
||||
# DALLE2_BASEURL= # Base URL for DALL-E-2
|
||||
|
||||
# DALL·E (via Azure OpenAI)
|
||||
# Note: requires some of the variables above to be set
|
||||
#----------------
|
||||
# DALLE3_AZURE_API_VERSION= # Azure OpenAI API version for DALL-E-3
|
||||
# DALLE2_AZURE_API_VERSION= # Azure OpenAI API versiion for DALL-E-2
|
||||
|
||||
# Google
|
||||
#-----------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue