-
Notifications
You must be signed in to change notification settings - Fork 61
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
Adding support for a sync client for Python + Typescript #803
Conversation
hellovai
commented
Jul 19, 2024
- Streaming in sync is support for Python as well
- This resolves some issues with celery
* Streaming in sync is support for Python as well * This resolves some issues with celery
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
PR Summary
- Added
default_client_mode
parameter todocs/docs/calling-baml/generate-baml-client.mdx
. - Introduced sync and async client examples in
docs/docs/get-started/quickstart/python.mdx
. - Updated
configuration.rs
to handle default client modes for different generator types. - Enhanced error handling in
v0.rs
,v1.rs
, andv2.rs
withnew_anyhow_error
. - Introduced synchronous streaming support in
engine/baml-runtime/src/types/stream.rs
.
28 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings
where | ||
F: Fn(FunctionResult) -> (), | ||
{ | ||
let rt = self.tokio_runtime.clone(); |
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.
Logic: Potential performance issue: Blocking the Tokio runtime could lead to performance degradation.
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.
PR Summary
(updates since last review)
- Enhanced parsing of Python types for Pydantic models in
engine/language_client_python/src/parse_py_type.rs
- Added
test_dynamic_inputs_list2
tointeg-tests/python/tests/test_functions.py
for dynamic input handling - Updated
typescript/fiddle-frontend/vercel-build.sh
to install LLVM and Clang for WASM module building
3 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings