/*
* Copyright 2024 KylinSoft Co., Ltd.
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see .
*/
#ifndef __KYLIN_AI_GEN_AI_VISION_ERROR_H__
#define __KYLIN_AI_GEN_AI_VISION_ERROR_H__
#include
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
VISION_INPUT_TEXT_LENGTH_INVALID = 100, // 文生图输入文本过长
VISION_IMAGE_STYLE_INVALID, // 不支持的风格
VISION_IMAGE_SIZE_INVALID, // 不支持的大小
VISION_IMAGE_NUMBER_INVALID, // 不支持的图片数量
VISION_IMAGE_GENERATION_BLOCKED, // 图片未过审
VISION_IMAGE_GENERATION_FAILED, // 生成图片失败
} GenAiVisionErrorCode;
#ifdef __cplusplus
}
#endif
#endif