Skip to content

bug: Use .stream_async() when streaming#31

Merged
schloerke merged 4 commits intomainfrom
stream_app_updates
Jan 9, 2025
Merged

bug: Use .stream_async() when streaming#31
schloerke merged 4 commits intomainfrom
stream_app_updates

Conversation

@schloerke
Copy link
Contributor

@schloerke schloerke commented Jan 7, 2025

Additional changes:

  • Add echo= to be able to expose tool calls within the app.

cc @mconflitti-pbc

@schloerke
Copy link
Contributor Author

(Failing tests are addressed in #30. Will not fix here.)

@schloerke schloerke marked this pull request as ready for review January 7, 2025 20:37
@schloerke schloerke requested a review from cpsievert January 7, 2025 20:37
port: int = 0,
launch_browser: bool = True,
bg_thread: Optional[bool] = None,
echo: Optional[Literal["text", "all", "none"]] = None,
Copy link
Contributor

Choose a reason for hiding this comment

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

Given how this is being used below, could be cleaner to default this to "none". I forget now the previous default behavior but would none be preferred over text for both cases (stream = True/False) unless explicitly set by the user?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In stream=False, the default is "text". But for stream=True, the default is "none".

With the conflicting behavior, I set the default to None (which goes to the appropriate default value given stream's value).

* main:
  bug: Use `repr()` for chat tool calls when exporting markdown (#30)
@schloerke
Copy link
Contributor Author

Failing test is unrelated to changes. Merging

@schloerke schloerke merged commit d3cd50b into main Jan 9, 2025
2 of 6 checks passed
@schloerke schloerke deleted the stream_app_updates branch January 9, 2025 20:46
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.

3 participants