Skip to content

Commit

Permalink
services(azure): fix AzureLLMService
Browse files Browse the repository at this point in the history
Fixes #160
  • Loading branch information
aconchillo committed May 23, 2024
1 parent d4b2741 commit 32173e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.21] - 2024-05-22

### Added
Expand Down
5 changes: 3 additions & 2 deletions src/pipecat/services/azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ def __init__(
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(
Expand Down

0 comments on commit 32173e0

Please sign in to comment.