added

v0.0.56 Add DataResponse

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

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

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

improved

v0.0.52: Minimum Python version is now 3.9

  • 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

improved

v0.0.51 Added download_filename to specify a filename when downloading from url

  • 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

  • Users can now call sync_bot_settings using fp.sync_bot_settings() directly
improved

ErrorResponse "text" Field is Now User-facing

  • Prior to this change, the text field of ErrorResponse was not displayed on the client and errors always showed the text "Bot x ran into an unexpected issue". With this change, the text field is now displayed to the user, allowing for custom error messages. It is recommended to put the raw exception in the raw_response field instead.
added

Added sender_id Field in ProtocolMessage

  • Added an additional field sender_id in ProtocolMessage. This is intended to help bot creators differentiate between who sent a particular message, which is useful in a multi-bot chat.