Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/opencode/src/session/prompt.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import path from "path"
import os from "os"
import z from "zod"
import { zodToJsonSchema } from "zod-to-json-schema"
import { SessionID, MessageID, PartID } from "./schema"
import { MessageV2 } from "./message-v2"
import { Log } from "../util/log"
Expand Down Expand Up @@ -436,7 +437,7 @@ NOTE: At any point in time through this workflow you should feel free to ask the
{ modelID: ModelID.make(input.model.api.id), providerID: input.model.providerID },
input.agent,
)) {
const schema = ProviderTransform.schema(input.model, z.toJSONSchema(item.parameters))
const schema = ProviderTransform.schema(input.model, zodToJsonSchema(item.parameters) as Record<string, unknown>)
tools[item.id] = tool({
id: item.id as any,
description: item.description,
Expand Down
Loading