fix(ai): export parseStreamingJson from main package for tsx compatibility

This commit is contained in:
Mario Zechner 2026-01-13 22:08:19 +01:00
parent 7d45e434de
commit 2b75948c2e
2 changed files with 3 additions and 2 deletions

View file

@ -3,18 +3,18 @@
* The server manages auth and proxies requests to LLM providers.
*/
// Internal import for JSON parsing utility
import {
type AssistantMessage,
type AssistantMessageEvent,
type Context,
EventStream,
type Model,
parseStreamingJson,
type SimpleStreamOptions,
type StopReason,
type ToolCall,
} from "@mariozechner/pi-ai";
// Internal import for JSON parsing utility
import { parseStreamingJson } from "@mariozechner/pi-ai/dist/utils/json-parse.js";
// Create stream class matching ProxyMessageEventStream
class ProxyMessageEventStream extends EventStream<AssistantMessageEvent, AssistantMessage> {