AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

fix(server): Add Azure-related environment variables for server

Open andrewhooker2 opened this issue 1 year ago • 3 comments

Included new environment variables for Azure AD token, OpenAI API type, version, and endpoint in the .env.template. This will enable support for Azure services in the AutoGPT server configuration.

Background

Resolves: #7746

Our current server configuration lacks support for Azure OpenAI services, preventing users from leveraging Azure-deployed models in the AutoGPT Builder, particularly when working with LLM agent blocks. This PR adds the necessary environment variables to support Azure services in the AutoGPT server configuration, enabling seamless integration with Azure-deployed OpenAI models.

Changes 🏗️

Updated .env.template to include new environment variables:

Addition of the following required items to our .env.template

  • Azure AD token
  • OpenAI API type
  • API version
  • API endpoint

Next Steps:

  • One call out here is that with these added we are still requiring the user to add their api key to each Block. This will be fixed in a following PR and does not align with being atomic here.

PR Quality Scorecard ✨

  • [x] Have you used the PR description template?   +2 pts
  • [x] Is your pull request atomic, focusing on a single change?   +5 pts
  • [x] Have you linked the GitHub issue(s) that this PR addresses?   +5 pts
  • [ ] Have you documented your changes clearly and comprehensively?   +5 pts
  • [ ] Have you changed or added a feature?   -4 pts
    • [ ] Have you added/updated corresponding documentation?   +4 pts
    • [ ] Have you added/updated corresponding integration tests?   +5 pts
  • [ ] Have you changed the behavior of AutoGPT?   -5 pts
    • [ ] Have you also run agbenchmark to verify that these changes do not regress performance?   +10 pts

andrewhooker2 avatar Aug 08 '24 15:08 andrewhooker2

Deploy Preview for auto-gpt-docs canceled.

Name Link
Latest commit 4907d331208618611e4a27aee04a34758dcd4d6c
Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/66b4de7c2a6626000822df94

netlify[bot] avatar Aug 08 '24 15:08 netlify[bot]

Can these be set via block?

ntindle avatar Aug 08 '24 15:08 ntindle

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

github-actions[bot] avatar Sep 04 '24 22:09 github-actions[bot]

closing as stale, sorry! feel free to reopen when you get time

ntindle avatar Oct 29 '24 00:10 ntindle