Skip to content

Comments

feat: add Vite plugin for LLMOps SDK#36

Draft
chtushar wants to merge 1 commit intomainfrom
chtushar/vite-plugin
Draft

feat: add Vite plugin for LLMOps SDK#36
chtushar wants to merge 1 commit intomainfrom
chtushar/vite-plugin

Conversation

@chtushar
Copy link
Contributor

@chtushar chtushar commented Feb 2, 2026

Summary

Add a Vite plugin that handles requests to a specified basePath, enabling full-stack apps built on Vite to integrate LLMOps seamlessly.

Key Features

  • Works in both dev mode (vite dev) and preview mode (vite preview)
  • Strips base path from incoming URLs and forwards to LLMOps handler
  • Handles SSE streaming responses for AI chat completions
  • Follows the same patterns as existing Express and Hono middlewares

Testing

  • Built and typechecked successfully
  • Generated dist files for ESM, CJS, and type definitions

🤖 Generated with Claude Code

Add a Vite plugin that handles requests to a specified basePath, enabling full-stack apps built on Vite to integrate LLMOps. The plugin works in both dev mode (configureServer) and preview mode (configurePreviewServer) for development and build testing.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant