Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add download_url option for file attachment #42

Merged
merged 20 commits into from
Jan 4, 2024

Conversation

JohntheLi
Copy link
Collaborator

add optional download_url parameter, which allows the developer to send a url for the file to be downloaded from, rather than uploading it directly.

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.
increase default timeout and allow passing httpx session into get_bot_response()
to match with the documentation, Poe generated suggested replies should be disabled by default.
function to call the new file attachment endpoint.
function to call the new file attachment endpoint.
@anmolsingh95 anmolsingh95 merged commit accaa5f into poe-platform:main Jan 4, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants