examples: fix studypal errors and update requirements

This commit is contained in:
Aleix Conchillo Flaqué
2024-08-22 11:36:16 -07:00
parent 9b6f29c24a
commit d42f072ff5
4 changed files with 13 additions and 7 deletions

View File

@@ -15,6 +15,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix `FastAPIWebsocketOutputTransport` variable name clash with subclass. - Fix `FastAPIWebsocketOutputTransport` variable name clash with subclass.
- Fix an `AnthropicLLMService` issue with empty arguments in function calling.
### Other
- Fixed `studypal` example errors.
## [0.0.40] - 2024-08-20 ## [0.0.40] - 2024-08-20
### Added ### Added

View File

@@ -1,5 +1,5 @@
beautifulsoup4==4.12.2 beautifulsoup4==4.12.3
PyPDF2==3.0.1 pypdf==4.3.1
tiktoken==0.7.0 tiktoken==0.7.0
pipecat-ai[daily,cartesia,openai,silero]==0.0.39 pipecat-ai[daily,cartesia,openai,silero]==0.0.40
python-dotenv==1.0.1 python-dotenv==1.0.1

View File

@@ -50,12 +50,12 @@ async def configure_with_args(
daily_rest_helper = DailyRESTHelper( daily_rest_helper = DailyRESTHelper(
daily_api_key=key, daily_api_key=key,
daily_api_url=os.getenv("DAILY_API_URL", "https://api.daily.co/v1"), daily_api_url=os.getenv("DAILY_API_URL", "https://api.daily.co/v1"),
) aiohttp_session=aiohttp_session)
# Create a meeting token for the given room with an expiration 1 hour in # Create a meeting token for the given room with an expiration 1 hour in
# the future. # the future.
expiry_time: float = 60 * 60 expiry_time: float = 60 * 60
token = daily_rest_helper.get_token(url, expiry_time) token = await daily_rest_helper.get_token(url, expiry_time)
return (url, token, args) return (url, token, args)

View File

@@ -5,7 +5,7 @@ import sys
import io import io
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
from PyPDF2 import PdfReader from pypdf import PdfReader
import tiktoken import tiktoken
from pipecat.frames.frames import LLMMessagesFrame from pipecat.frames.frames import LLMMessagesFrame