mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 00:04:49 +00:00
Fix tsgo type issues: update tsgo, fix ReasoningEffort import, remove broken enum-test
This commit is contained in:
parent
0bc8d79216
commit
238c5d34e4
7 changed files with 289 additions and 835 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import type { ImageContent, Message, QueuedMessage, TextContent } from "@mariozechner/pi-ai";
|
||||
import type { ImageContent, Message, QueuedMessage, ReasoningEffort, TextContent } from "@mariozechner/pi-ai";
|
||||
import { getModel } from "@mariozechner/pi-ai";
|
||||
import type { AgentTransport } from "./transports/types.js";
|
||||
import type { AgentEvent, AgentState, AppMessage, Attachment, ThinkingLevel } from "./types.js";
|
||||
|
|
@ -209,7 +209,7 @@ export class Agent {
|
|||
this._state.streamMessage = null;
|
||||
this._state.error = undefined;
|
||||
|
||||
const reasoning =
|
||||
const reasoning: ReasoningEffort | undefined =
|
||||
this._state.thinkingLevel === "off"
|
||||
? undefined
|
||||
: this._state.thinkingLevel === "minimal"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue