| 1 |
/* |
| 2 |
* Copyright 2024 KylinSoft Co., Ltd. |
| 3 |
* |
| 4 |
* This program is free software: you can redistribute it and/or modify it under |
| 5 |
* the terms of the GNU General Public License as published by the Free Software |
| 6 |
* Foundation, either version 3 of the License, or (at your option) any later |
| 7 |
* version. |
| 8 |
* |
| 9 |
* This program is distributed in the hope that it will be useful, but WITHOUT |
| 10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| 11 |
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
| 12 |
* details. |
| 13 |
* |
| 14 |
* You should have received a copy of the GNU General Public License along with |
| 15 |
* this program. If not, see <https://www.gnu.org/licenses/>. |
| 16 |
*/ |
| 17 |
|
| 18 |
#ifndef __KYLIN_AI_GEN_AI_VISION_ERROR_H__ |
| 19 |
#define __KYLIN_AI_GEN_AI_VISION_ERROR_H__ |
| 20 |
|
| 21 |
#include <kylin-ai/common/error.h> |
| 22 |
|
| 23 |
#ifdef __cplusplus |
| 24 |
extern "C" { |
| 25 |
#endif |
| 26 |
|
| 27 |
typedef enum { |
| 28 |
VISION_INPUT_TEXT_LENGTH_INVALID = 100, // 文生图输入文本过长 |
| 29 |
VISION_IMAGE_STYLE_INVALID, // 不支持的风格 |
| 30 |
VISION_IMAGE_SIZE_INVALID, // 不支持的大小 |
| 31 |
VISION_IMAGE_NUMBER_INVALID, // 不支持的图片数量 |
| 32 |
VISION_IMAGE_GENERATION_BLOCKED, // 图片未过审 |
| 33 |
VISION_IMAGE_GENERATION_FAILED, // 生成图片失败 |
| 34 |
} GenAiVisionErrorCode; |
| 35 |
|
| 36 |
#ifdef __cplusplus |
| 37 |
} |
| 38 |
#endif |
| 39 |
|
| 40 |
#endif |