Skip to content

Commit a2fb1a8

Browse files
committed
fix(providers): tighten ResponsesInputItem content type to SDK ResponseInputContent
Build fix: buildOpenAIMessageContent returns ResponseInputContent[] which isn't assignable to Record<string, unknown>[] (ResponseInputText lacks an index signature). Align the type to the SDK shape.
1 parent af6f058 commit a2fb1a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/providers/openai/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface ResponsesToolCall {
2222
export type ResponsesInputItem =
2323
| {
2424
role: 'system' | 'user' | 'assistant'
25-
content: string | Array<Record<string, unknown>>
25+
content: string | OpenAI.Responses.ResponseInputContent[]
2626
}
2727
| {
2828
type: 'function_call'

0 commit comments

Comments
 (0)