patches for promplate-core for running in pyodide runtime
Project description
promplate-pyodide
Run your promplate
project in the browser with pyodide!
Usage
from micropip import install # in pyodide runtime
await install("promplate-pyodide")
from promplate_pyodide import patch_all
patch_all()
You can register the openai
module as the JavaScript SDK in the JavaScript scope because the Python SDK v1.x doesn't support pyodide.
It will remove sync APIs of promplate.llm.openai
because the JavaScript OpenAI SDK is async-only.
Of course you can use OpenAI Python SDK v0.x in pyodide, but it is not recommended.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for promplate_pyodide-0.0.3.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | efff51e5ad9c9306f2b14b194d3c409d6e6080aaa0d4dddf1465122942db5e6b |
|
MD5 | a0e2e796d31aed337ae3cb7b6b2f5c48 |
|
BLAKE2b-256 | f172b923fdf994b8ff3c14252a3d105a13153036599ac29174dc714c1e8b314e |
Close
Hashes for promplate_pyodide-0.0.3.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c39fc1e12796643afac3e93ddd3254c69edca5406fa16ab0d7cf94a849dc38f3 |
|
MD5 | 196347b59668727844714477e76711bf |
|
BLAKE2b-256 | 67450001fc1ffa9c4c2fa68810e55c764e22d85aa9250e24247dc8d54acefdf8 |