added
v0.0.56 Add DataResponse
19 days 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
24 days 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
26 days 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
about 1 month 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
about 2 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
2 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
2 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
7 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
8 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.
added
Added sender_id Field in ProtocolMessage
9 months ago by John Li
- Added an additional field
sender_id
inProtocolMessage
. This is intended to help bot creators differentiate between who sent a particular message, which is useful in a multi-bot chat.