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
While trying to get massages for thread (OpenAI.messages) fails with com.aallam.openai.api.exception.OpenAIHttpException: Illegal input: Field 'quote' is required for type with serial name 'com.aallam.openai.api.message.FileCitation', but it was missing at path: $.data[0].content[0].text.annotations[0].file_citation
Description
While trying to get massages for thread (OpenAI.messages) fails with
com.aallam.openai.api.exception.OpenAIHttpException: Illegal input: Field 'quote' is required for type with serial name 'com.aallam.openai.api.message.FileCitation', but it was missing at path: $.data[0].content[0].text.annotations[0].file_citation
Environment
openai-kotlin version: [e.g. 1.0.0]
implementation("com.aallam.openai", "openai-client", "3.8.1")
implementation("io.ktor","ktor-client-apache5","2.3.12")
Kotlin version: [e.g. 1.6.0]
kotlin("jvm") version "1.9.0"
OS: [e.g. Windows 10, macOS, Ubuntu]
Windows 10 Pro
Additional Info
For some reasons response from OpenAI doesn't contain
quote
field which is marked as not null for FileCitation data class.The text was updated successfully, but these errors were encountered: