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

Adding support for a sync client for Python + Typescript #803

Merged
merged 2 commits into from
Jul 19, 2024

Conversation

hellovai
Copy link
Contributor

  • 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
Copy link

vercel bot commented Jul 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
baml ❌ Failed (Inspect) Jul 19, 2024 8:52am

@hellovai hellovai merged commit 62085e7 into canary Jul 19, 2024
8 of 9 checks passed
@hellovai hellovai deleted the sync-client branch July 19, 2024 08:43
Copy link

@greptile-apps greptile-apps bot left a 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 to docs/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, and v2.rs with new_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();
Copy link

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.

Copy link

@greptile-apps greptile-apps bot left a 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 to integ-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

hellovai added a commit that referenced this pull request Jul 19, 2024
- Fix related WASM issues
hellovai added a commit that referenced this pull request Jul 19, 2024
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