jlewi / foyle

AI For Software Operations
https://foyle.io
Apache License 2.0
85 stars 9 forks source link

Render OpenAI request/response as HTML #265

Closed jlewi closed 8 hours ago

jlewi commented 8 hours ago

This PR adds support for rendering of OpenAI requests/responses as HTML (fix #259). This functionality was already supported for Anthropic.

I added an LLM sub-command to support rendering the data as HTML. This makes it reusable and not closely tied to the GetLLMLogs RPC.

Fix HTML rendering of our prompts to properly handle the XML tags in our prompt. We need to escape them so they aren't treated as raw HTML tags which don't render.

Remove the obsolete logs subcommand.

Fix #259

netlify[bot] commented 8 hours ago

Deploy Preview for foyle canceled.

Name Link
Latest commit 38049f4f58155646a9557d44e2c0fa06b2bf79be
Latest deploy log https://app.netlify.com/sites/foyle/deploys/66fa14fab60f2b0008807450