Skip to content

Commit

Permalink
Added Azure API Management Support
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Lana authored and jekalmin committed Oct 27, 2024
1 parent 2bdc508 commit 399d5a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Since "gpt-3.5-turbo" model already knows how to call service of Home Assistant
4. In the bottom right corner, select the Add Integration button.
5. Follow the instructions on screen to complete the setup (API Key is required).
- [Generating an API Key](https://www.home-assistant.io/integrations/openai_conversation/#generate-an-api-key)
- Specify "Base Url" if using OpenAI compatible servers like LocalAI, otherwise leave as it is.
- Specify "Base Url" if using OpenAI compatible servers like Azure OpenAI (also with APIM), LocalAI, otherwise leave as it is.
6. Go to Settings > [Voice Assistants](https://my.home-assistant.io/redirect/voice_assistants/).
7. Click to edit Assistant (named "Home Assistant" by default).
8. Select "Extended OpenAI Conversation" from "Conversation agent" tab.
Expand Down
2 changes: 1 addition & 1 deletion custom_components/extended_openai_conversation/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
_LOGGER = logging.getLogger(__name__)


AZURE_DOMAIN_PATTERN = r"\.openai\.azure\.com"
AZURE_DOMAIN_PATTERN = r"\.(openai\.azure\.com|azure-api\.net)"


def get_function_executor(value: str):
Expand Down

0 comments on commit 399d5a7

Please sign in to comment.