Skip to content

Commit 399d5a7

Browse files
Frank802jekalmin
authored andcommitted
Added Azure API Management Support
1 parent 2bdc508 commit 399d5a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Since "gpt-3.5-turbo" model already knows how to call service of Home Assistant
2222
4. In the bottom right corner, select the Add Integration button.
2323
5. Follow the instructions on screen to complete the setup (API Key is required).
2424
- [Generating an API Key](https://www.home-assistant.io/integrations/openai_conversation/#generate-an-api-key)
25-
- Specify "Base Url" if using OpenAI compatible servers like LocalAI, otherwise leave as it is.
25+
- Specify "Base Url" if using OpenAI compatible servers like Azure OpenAI (also with APIM), LocalAI, otherwise leave as it is.
2626
6. Go to Settings > [Voice Assistants](https://my.home-assistant.io/redirect/voice_assistants/).
2727
7. Click to edit Assistant (named "Home Assistant" by default).
2828
8. Select "Extended OpenAI Conversation" from "Conversation agent" tab.

custom_components/extended_openai_conversation/helpers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
_LOGGER = logging.getLogger(__name__)
5858

5959

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

6262

6363
def get_function_executor(value: str):

0 commit comments

Comments
 (0)