Skip to content

Conversation

Kludex
Copy link
Member

@Kludex Kludex commented Jun 2, 2025

The module is named streamable_http_client, it doesn't make sense for the function to be called streamablehttp_client.

- [Prompts](#prompts)
- [Images](#images)
- [Context](#context)
- [Authentication](#authentication)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My IDE added those... Which seems correct.

Comment on lines +85 to +86
timeout: float | timedelta = 30,
sse_read_timeout: float | timedelta = 60 * 5,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is backwards compatible.

Comment on lines +477 to +478
timeout.total_seconds(),
sse_read_timeout.total_seconds(),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use total_seconds(), not seconds. Only seconds was wrong.

@Kludex Kludex requested review from Copilot, dsp-ant and ihrpr June 2, 2025 12:15
), # url, headers, timeout, sse_read_timeout, terminate_on_close
],
)
async def test_establish_session_parameterized(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added type hints, and simplified this test.

This test shouldn't exist as is, it's very confusing, and full of mocking, but I just adapted it for the sake of my changes.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@Kludex Kludex closed this Jun 2, 2025
@Kludex Kludex deleted the add-streamable-http-client branch June 2, 2025 13:29
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.

1 participant