openai icon indicating copy to clipboard operation
openai copied to clipboard

RequestFailedException(message: Invalid type for 'messages[1].content[1].image_url': expected an object, but got a string instead., statusCode: 400)

Open lukehutch opened this issue 11 months ago • 5 comments
trafficstars

When trying the chat example, I get:

RequestFailedException(message: Invalid type for 'messages[1].content[1].image_url': expected an object, but got a string instead., statusCode: 400)
#0      OpenAINetworkingClient.post (package:dart_openai/src/core/networking/client.dart:332:7)
<asynchronous suspension>
#1      OpenAIChat.create (package:dart_openai/src/instance/chat/chat.dart:87:12)
<asynchronous suspension>
#2      run (package:qa/qa.dart:68:46)
<asynchronous suspension>
#3      main (file:///Users/lhutchison/qa/bin/qa.dart:8:3)
<asynchronous suspension>

lukehutch avatar Dec 04 '24 00:12 lukehutch