-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add download_url option for file attachment (#42)
* fastapi_poe client: increase httpx timeout If an httpx session is not passed in, the default timeout of the created session is currently 5 seconds, which is too short for long LLM requests. Make the default 120 seconds instead. User can pass in their own httpx session if they wish to set a custom timeout. Also, make the error log print repr(e) as httpx.ReadTimeout did not have a message body. So at least the exception type will be printed. * release 0.0.23 increase default timeout and allow passing httpx session into get_bot_response() * PoeBot: default no generated suggested replies to match with the documentation, Poe generated suggested replies should be disabled by default. * add function for file attachments function to call the new file attachment endpoint. * add function for file attachments function to call the new file attachment endpoint. * update to 0.0.26 * add optional download_url parameter for file attachment * fix some typings * remove HTTPException type to fix type check * try fixing error handler
- Loading branch information
Showing
2 changed files
with
37 additions
and
16 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters