-
Notifications
You must be signed in to change notification settings - Fork 3
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
bug: Use .stream_async()
when streaming
#31
Conversation
(Failing tests are addressed in #30. Will not fix here.) |
@@ -388,6 +388,7 @@ def app( | |||
port: int = 0, | |||
launch_browser: bool = True, | |||
bg_thread: Optional[bool] = None, | |||
echo: Optional[Literal["text", "all", "none"]] = None, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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)
Failing test is unrelated to changes. Merging |
Additional changes:
echo=
to be able to expose tool calls within the app.cc @mconflitti-pbc