added

v0.0.60 Server bot creators can define and explain variable pricing for their bots

  • New method authorize_cost: used to ensure the user is willing to spend enough points before you make potentially expensive model calls
  • New method capture_cost: used to capture the actual cost after you perform the model calls
  • New setting cost_label: used to show a short pricing string in the Poe UI (e.g. "100+ points")
  • New setting rate_card (previously custom_rate_card): used to provide a more detailed explanation of your pricing structure
added

v0.0.59 Add get_bot_response_sync

Add get_bot_response_sync, which is a synchronous wrapper around get_bot_response. This allows users to call the function more easily without having to worry about asyncio.

fixed

v0.0.58 Fix bug with post_message_attachment

Fix an issue with release 0.0.57 where attachments were not made if post_message_attachment was called at the end of get_reponse.

added

v0.0.57 Support Passing Attachments between Bots

  1. Bots can now pass attachments to each other via fp.stream_request. To do this, call the post_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 the attachment field of a PartialResponse from the bot.
  2. 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

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