services(azure): fix AzureLLMService

Fixes #160
This commit is contained in:
Aleix Conchillo Flaqué
2024-05-23 07:27:04 -07:00
parent fac43cea06
commit 32f91c5f31
2 changed files with 9 additions and 2 deletions

View File

@@ -5,6 +5,12 @@ All notable changes to **pipecat** will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Fixed
- Fixed AzureLLMService.
## [0.0.23] - 2024-05-23
### Fixed

View File

@@ -77,10 +77,11 @@ class AzureLLMService(BaseOpenAILLMService):
endpoint,
api_version="2023-12-01-preview",
model):
super().__init__(api_key=api_key, model=model)
# Initialize variables before calling parent __init__() because that
# will call create_client() and we need those values there.
self._endpoint = endpoint
self._api_version = api_version
self._model: str = model
super().__init__(api_key=api_key, model=model)
def create_client(self, api_key=None, base_url=None):
self._client = AsyncAzureOpenAI(