Skip to content

Commit

Permalink
Release 2.7.9 (#1833)
Browse files Browse the repository at this point in the history
# Changelog

## New Features:

- RedditTools added with cookbook examples
- TelegramTools added with a cookbook example

## Improvements:

- Updates the defaults on the GeminiEmbedder to use a more up-to-date
model and incorporate recommendations from their
[[docs](https://docs.phidata.com/embedder/gemini#params)](https://docs.phidata.com/embedder/gemini#params).

## Bug Fixes:

- Fix imports of `docx` being required for using the playground
- Fix AzureOpenAIEmbedder and AzureOpenAIChat compatibility
- Fix cases where SlackTool threw an exception when the "user" field is
blank or not available
- Fix case where Response Models don’t work with show_tool_calls. This
will use the response model if there is one, overriding any tool
calling.
- Fix issue in Claude where memory blocks were stored in the raw claude
format with TextBlock, etc
- Fix cases where you switch models from ChatGPT to Gemini with same
history
  • Loading branch information
dirkbrnd authored Jan 20, 2025
1 parent 1ad4545 commit 9a5d941
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions phi/tools/telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ def __init__(self, chat_id: Union[str, int], token: Optional[str] = None):

self.token = token or os.getenv("TELEGRAM_TOKEN")
if not self.token:
logger.error(
"TELEGRAM_TOKEN not set. Please set the TELEGRAM_TOKEN environment variable."
)
logger.error("TELEGRAM_TOKEN not set. Please set the TELEGRAM_TOKEN environment variable.")

self.chat_id = chat_id

Expand All @@ -30,9 +28,7 @@ def send_message(self, message: str) -> str:
:param message: The message to send.
:return: The response from the API.
"""
response = self._call_post_method(
"sendMessage", json={"chat_id": self.chat_id, "text": message}
)
response = self._call_post_method("sendMessage", json={"chat_id": self.chat_id, "text": message})
try:
response.raise_for_status()
return response.text
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "phidata"
version = "2.7.8"
version = "2.7.9"
description = "Build multi-modal Agents with memory, knowledge and tools."
requires-python = ">=3.7,<4"
readme = "README.md"
Expand Down

0 comments on commit 9a5d941

Please sign in to comment.