You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to follow sample usage, but the line encodeChat(messages) is returning this warning in VS Code:
[{
...
"message": "Argument of type '{ role: string; content: string; }[]' is not assignable to parameter of type 'readonly ChatMessage[]'.\n Type '{ role: string; content: string; }' is not assignable to type 'ChatMessage'.\n Types of property 'role' are incompatible.\n Type 'string' is not assignable to type '\"system\" | \"user\" | \"assistant\" | undefined'.",
...
}]
How do I make this work without TypeScript warnings?
The text was updated successfully, but these errors were encountered:
I tried to follow sample usage, but the line
encodeChat(messages)
is returning this warning in VS Code:How do I make this work without TypeScript warnings?
The text was updated successfully, but these errors were encountered: