added
v0.0.57 Support Passing Attachments between Bots
17 days ago by John Li
- Bots can now pass attachments to each other via
fp.stream_request
. To do this, call thepost_message_attachment function
, which continues to work like before, but will now also implicitly emit a file event to other server bots calling it. Calling bots will receive the file in theattachment
field of aPartialResponse
from the bot. - OpenAI tool calling improvement: the request will finish without making an extra unnecessary second call to the OpenAI bot if no tools are decided to be called. This saves cost to the user.
added
v0.0.56 Add DataResponse
about 2 months ago by John Li
This release adds the new DataResponse
object which bots can yield to attach a metadata string to their response. This string can be accessed in the metadata
field of the associated ProtocolMessage
in future requests to the bot. This is useful for storing additional information about previous messages in the conversation.
improved
v0.0.55 PDF attachments supported in expand_text_attachments
2 months ago by John Li
If allow_attachments
and expand_text_attachments
are both True
, PDF files uploaded by the users will have their contents automatically appended to the conversation for the model to reference. This previously only worked for text and html files.
improved
Increased bot dependency limit
2 months ago by Yusheng Ding
Previously, when defining server_bot_dependencies
there was a limit of 10 calls to other bots for a single message. This limit has been increased to 100 calls for a single message.
improved
Updated suggested Poe Previews prompt
3 months ago by Alexis
- Updated the suggested optimized Poe Previews prompt to better support React. See https://creator.poe.com/docs/how-to-create-a-prompt-bot#optimize-prompt-for-previews for the full prompt
improved
v0.0.52: Minimum Python version is now 3.9
3 months ago by John Li
- We updated the fastapi_poe library to require Python >=3.9, as Python 3.8 reached end of life in October 2024.
- This version also includes a fix for tool calls failing when the model decides not to call the function.
added
Support for creating prompt bots in responses
3 months ago by Alexis
- Added ability for server bots to help users create prompt bots with pre-filled fields. See https://creator.poe.com/docs/server-bots-functional-guides#creating-bots-that-help-their-users-create-prompt-bots for more details.
improved
v0.0.51 Added download_filename to specify a filename when downloading from url
4 months ago by Alexis
- Added download_filename for specifying a filename when downloading from url. Previously the filename from the download_url was always used. This enables bots to set a custom filename for attachments they post via download_url.
improved
v0.0.47 Expose sync_bot_settings
8 months ago by John Li
- Users can now call sync_bot_settings using fp.sync_bot_settings() directly
improved
ErrorResponse "text" Field is Now User-facing
9 months ago by John Li
- Prior to this change, the
text
field ofErrorResponse
was not displayed on the client and errors always showed the text "Bot x ran into an unexpected issue". With this change, thetext
field is now displayed to the user, allowing for custom error messages. It is recommended to put the raw exception in theraw_response
field instead.