pezzolabs / pezzo

🕹️ Open-source, developer-first LLMOps platform designed to streamline prompt design, version management, instant delivery, collaboration, troubleshooting, observability and more.
https://pezzo.ai
Apache License 2.0
2.54k stars 210 forks source link

Support for deno #243

Closed Maxim-Filimonov closed 1 year ago

Maxim-Filimonov commented 1 year ago

Proposal

I tried to import @pezzo/client in deno using the following syntax:

import { Pezzo, PezzoOpenAI } from 'https://esm.sh/@pezzo/client@0.4.16';

However it fails to download due to openai official not being deno compatible:

deno cache deps.ts
error: Module not found "https://esm.sh/v133/openai@4.12.1/denonext/resources.js".
    at https://esm.sh/v133/openai@4.12.1/denonext/openai.mjs:6:13494

Can peer dependendcy be removed and openAi client provided as argument to pezzo client?

Use-Case

I'd like to use pezzo in supabase functions environment which uses Deno runtime.

Is this a feature you are interested in implementing yourself?

Maybe

arielweinberger commented 1 year ago

Hi @Maxim-Filimonov, will you be kind to try and make this work on a fork and share the results?

arielweinberger commented 1 year ago

This has been open for a while and we still don't see strong interest from the community. I'll close this for now.