| Package | Description |
|---|---|
| org.noear.solon.ai.chat.message | |
| org.noear.solon.ai.image |
| Modifier and Type | Method and Description |
|---|---|
static ChatMessage |
ChatMessage.ofUser(String content,
Image... images)
构建用户消息
|
| Modifier and Type | Method and Description |
|---|---|
Image |
ImageResponse.getImage()
获取图片
|
static Image |
Image.ofBase64(byte[] base64)
由 base64 构建
|
static Image |
Image.ofBase64(byte[] base64,
String mime)
由 base64 构建
|
static Image |
Image.ofBase64(String base64String)
由 base64String 构建
|
static Image |
Image.ofBase64(String base64String,
String mime)
由 base64 构建
|
static Image |
Image.ofUrl(String url)
由 url 构建
|
| Modifier and Type | Method and Description |
|---|---|
List<Image> |
ImageResponse.getData()
获取数据
|
| Constructor and Description |
|---|
ImageResponse(String model,
ImageException error,
List<Image> data,
AiUsage usage) |
Copyright © 2025. All rights reserved.