Uses of Class
com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart
-
Packages that use ChatCompletionMessagePart Package Description com.composum.ai.backend.base.service.chat.impl.chatmodel -
-
Uses of ChatCompletionMessagePart in com.composum.ai.backend.base.service.chat.impl.chatmodel
Methods in com.composum.ai.backend.base.service.chat.impl.chatmodel that return ChatCompletionMessagePart Modifier and Type Method Description static ChatCompletionMessagePart
ChatCompletionMessagePart. imageUrl(String imageUrl)
static ChatCompletionMessagePart
ChatCompletionMessagePart. text(String text)
Methods in com.composum.ai.backend.base.service.chat.impl.chatmodel that return types with arguments of type ChatCompletionMessagePart Modifier and Type Method Description List<ChatCompletionMessagePart>
ChatCompletionMessagePart.ChatCompletionMessagePartListDeSerializer. deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
List<ChatCompletionMessagePart>
ChatCompletionMessage. getContent()
Method parameters in com.composum.ai.backend.base.service.chat.impl.chatmodel with type arguments of type ChatCompletionMessagePart Modifier and Type Method Description com.google.gson.JsonElement
ChatCompletionMessagePart.ChatCompletionMessagePartListDeSerializer. serialize(List<ChatCompletionMessagePart> src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
To save space: if there is only one element in src that also is a text message, we serialize it as a string, otherwise as object list.void
ChatCompletionMessage. setContent(List<ChatCompletionMessagePart> content)
-