mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 03:04:28 +00:00
fix(ai): export parseStreamingJson from main package for tsx compatibility
This commit is contained in:
parent
7d45e434de
commit
2b75948c2e
2 changed files with 3 additions and 2 deletions
|
|
@ -3,18 +3,18 @@
|
||||||
* The server manages auth and proxies requests to LLM providers.
|
* The server manages auth and proxies requests to LLM providers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// Internal import for JSON parsing utility
|
||||||
import {
|
import {
|
||||||
type AssistantMessage,
|
type AssistantMessage,
|
||||||
type AssistantMessageEvent,
|
type AssistantMessageEvent,
|
||||||
type Context,
|
type Context,
|
||||||
EventStream,
|
EventStream,
|
||||||
type Model,
|
type Model,
|
||||||
|
parseStreamingJson,
|
||||||
type SimpleStreamOptions,
|
type SimpleStreamOptions,
|
||||||
type StopReason,
|
type StopReason,
|
||||||
type ToolCall,
|
type ToolCall,
|
||||||
} from "@mariozechner/pi-ai";
|
} 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
|
// Create stream class matching ProxyMessageEventStream
|
||||||
class ProxyMessageEventStream extends EventStream<AssistantMessageEvent, AssistantMessage> {
|
class ProxyMessageEventStream extends EventStream<AssistantMessageEvent, AssistantMessage> {
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ export * from "./providers/openai-responses.js";
|
||||||
export * from "./stream.js";
|
export * from "./stream.js";
|
||||||
export * from "./types.js";
|
export * from "./types.js";
|
||||||
export * from "./utils/event-stream.js";
|
export * from "./utils/event-stream.js";
|
||||||
|
export * from "./utils/json-parse.js";
|
||||||
export * from "./utils/oauth/index.js";
|
export * from "./utils/oauth/index.js";
|
||||||
export * from "./utils/overflow.js";
|
export * from "./utils/overflow.js";
|
||||||
export * from "./utils/typebox-helpers.js";
|
export * from "./utils/typebox-helpers.js";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue