Log in
Log into community
Get help from the marimo community
New post
View all posts
Related posts
Was this helpful?
😞
😐
😃
Powered by
Hall
Active
Updated last week
0
Follow
LLM client that works with Marimo chat and Pyodide
Question
LLM client that works with Marimo chat and Pyodide
Active
0
Follow
a
asrar
last week
·
Does anyone know a chat bot client that works in pyodide and is supported by marimo chat widget?
I'm trying to build a data chat bot but running into this.
Openai's python client doesn't work in pyodide it seems.
M
a
4 comments
Share
Open in Discord
M
Myles Scolnick
last week
The chat bot does work, but the libraries you are using likely don’t - such as openai
You can just make a plain REST request, but might hit cors. I know Anthropic allows cors via a setting. Maybe openai does now too
a
asrar
last week
If I just use plain requests, can I still integrate it with Marimo s chat widgets
M
Myles Scolnick
last week
You can - for the first param, instead of using a built in model, you pass a callback which takes in a list of messages and returns a single response
M
Myles Scolnick
last week
(On my phone, otherwise would give you an example)
Add a reply
Sign up and join the conversation on Discord
Join on Discord