mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-23 22:34:53 +00:00
chore: add note to message-v2 that we need to do further updates to it before this PR can be merged VERYYYY IMPORTANTgcleangclean
This commit is contained in:
@@ -584,6 +584,7 @@ export namespace MessageV2 {
|
||||
return false
|
||||
})()
|
||||
|
||||
// TODO: THIS IS NOT COMPLIANT WITH AI SDK V66!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
const toModelOutput = (output: unknown) => {
|
||||
if (typeof output === "string") {
|
||||
return { type: "text", value: output }
|
||||
@@ -785,6 +786,7 @@ export namespace MessageV2 {
|
||||
return await convertToModelMessages(
|
||||
result.filter((msg) => msg.parts.some((part) => part.type !== "step-start")),
|
||||
{
|
||||
// TODO: WE MUST REVIEW THIS TYPE AGAIN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
//@ts-expect-error (convertToModelMessages expects a ToolSet but only actually needs tools[name]?.toModelOutput)
|
||||
tools,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user