cfortuner / promptable

Build LLM apps in Typescript/Javascript. 🧑‍💻 🧑‍💻 🧑‍💻 🚀 🚀 🚀
https://docs-promptable.vercel.app
MIT License
1.77k stars 118 forks source link

Added Prisma model for Traces #13

Closed justinliang1020 closed 1 year ago

justinliang1020 commented 1 year ago

Promptable UI now fetches from database for traces.

Seed the example traces using "npx prisma db seed".

The endpoint for receiving traces is localhost:3000/api/traces, if you pass the trace json as the body of a PUT response it should update the database.

TODO: i tried running the tracing-web example but don't think it's currently sending anything to the endpoint since the "sendTraceToServer" function in promptable/src/tracing.ts isn't called.

vercel[bot] commented 1 year ago

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

Name Status Preview Comments Updated
docs-promptable ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 15, 2023 at 8:32PM (UTC)