Skip to content

Commit

Permalink
update support for AOAI
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidKoleczek committed Aug 18, 2024
1 parent b34183a commit 629fb0c
Show file tree
Hide file tree
Showing 6 changed files with 108 additions and 82 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_ORG_ID: ${{ secrets.OPENAI_ORG_ID }}
SKIP_TESTS_NAAI: "tests/llm/ollama tests/local_llm tests/llm/open_ai/test_azure_openai.py"
SKIP_TESTS_NAAI: "tests/llm tests/local_llm"
run: poetry run nox -s test-${{ matrix.python-version }}
quality:
runs-on: ubuntu-22.04
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ The package is split into subpackages, so you can install only the parts you nee
1. OpenAI API
1. Go to https://platform.openai.com/settings/profile?tab=api-keys to get your API key.
1. (Optional) Set the `OPENAI_API_KEY` and the `OPENAI_ORG_ID` environment variables.
1. Azure OpenAI (AOAI)
1. Using AOAI requires using Entra ID authentication. See https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/managed-identity for how to set this up for your AOAI deployment.
1. Requires the correct role assigned to your user account and being signed into the Azure CLI.
1. (Optional) Set the `AZURE_OPENAI_ENDPOINT` environment variable.
1. GitHub Models
1. Get a Personal Access Token from https://github.com/settings/tokens and set the `GITHUB_TOKEN` environment variable. The token does not need any permissions.
1. Check the [Github Marketplace](https://github.com/marketplace/models) to see which models are available.
Expand Down
Loading

0 comments on commit 629fb0c

Please sign in to comment.