Skip to content

Commit

Permalink
examples: fix studypal errors and update requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
aconchillo committed Aug 22, 2024
1 parent 9b6f29c commit d42f072
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 an `AnthropicLLMService` issue with empty arguments in function calling.

### Other

- Fixed `studypal` example errors.

## [0.0.40] - 2024-08-20

### Added
Expand Down
6 changes: 3 additions & 3 deletions examples/studypal/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
beautifulsoup4==4.12.2
PyPDF2==3.0.1
beautifulsoup4==4.12.3
pypdf==4.3.1
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
6 changes: 3 additions & 3 deletions examples/studypal/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ async def configure_with_args(
daily_rest_helper = DailyRESTHelper(
daily_api_key=key,
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
# the future.
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)
2 changes: 1 addition & 1 deletion examples/studypal/studypal.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import io

from bs4 import BeautifulSoup
from PyPDF2 import PdfReader
from pypdf import PdfReader
import tiktoken

from pipecat.frames.frames import LLMMessagesFrame
Expand Down

0 comments on commit d42f072

Please sign in to comment.