feat: enhance Azure OpenAI embeddings and add voice support for Azure provider

- Introduced a fixed parameter order for AzureOpenAIEmbeddings to resolve compatibility issues.
- Updated the voice selection logic to include Azure voices in the podcaster utility.
- Modified the page limit service to use a more efficient method for retrieving users.
This commit is contained in:
DESKTOP-RTLN3BA\$punk 2025-10-30 22:33:47 -07:00
parent 34353078fe
commit a2fb9faad6
4 changed files with 73 additions and 9 deletions

View file

@ -98,7 +98,7 @@ class PageLimitService:
# Get user
result = await self.session.execute(select(User).where(User.id == user_id))
user = result.scalar_one_or_none()
user = result.unique().scalar_one_or_none()
if not user:
raise ValueError(f"User with ID {user_id} not found")