Update azure.md

This commit is contained in:
Danny Avila 2023-07-06 14:18:39 -04:00
parent 206fc50bc9
commit 12e2826d39

View file

@ -26,7 +26,7 @@ These two variables are optional but may be used in future updates of this proje
## Plugin Endpoint Variables
Note: feature may not work as expected with the Plugins endpoint as Azure OpenAI may not support OpenAI Functions yet. Even when results were generated, they were not great compared to the regular OpenAI endpoint. You should set the "Functions" off in the Agent settings, and it's recommend to not skip completion with functions off.
Note: The Plugins endpoint may not work as expected with Azure OpenAI, which may not support OpenAI Functions yet. Even when results were generated, they were not great compared to the regular OpenAI endpoint. You should set the "Functions" off in the Agent settings, and it's recommend to not skip completion with functions off.
To use Azure with the Plugins endpoint, there are some extra steps to take as the langchain library is particular with envrionment variables:
@ -34,4 +34,4 @@ To use Azure with the Plugins endpoint, there are some extra steps to take as th
* `AZURE_OPENAI_API_KEY`: Your Azure API key must be set to this environment variable, not to be confused with `AZURE_API_KEY`, which can remain as before.
* `OPENAI_API_KEY`: Must be omitted or commented to use Azure with Plugins
These steps are quick workarounds as other solutions would require renaming environment variables. This is due to langchain overriding environment variables, and will have to be solved with a later solution.
These steps are quick workarounds as other solutions would require renaming environment variables. This is due to langchain overriding environment variables, and will have to be solved with a later solution.