实现ai
This commit is contained in:
@@ -1648,6 +1648,16 @@ definitions:
|
||||
- quantity
|
||||
- treatment_location
|
||||
type: object
|
||||
dto.ReviewRecipeResponse:
|
||||
properties:
|
||||
ai_model:
|
||||
allOf:
|
||||
- $ref: '#/definitions/models.AIModel'
|
||||
description: 使用的 AI 模型
|
||||
review_message:
|
||||
description: 点评内容
|
||||
type: string
|
||||
type: object
|
||||
dto.SellPigsRequest:
|
||||
properties:
|
||||
pen_id:
|
||||
@@ -2274,6 +2284,12 @@ definitions:
|
||||
weight:
|
||||
type: number
|
||||
type: object
|
||||
models.AIModel:
|
||||
enum:
|
||||
- Gemini
|
||||
type: string
|
||||
x-enum-varnames:
|
||||
- AI_MODEL_GEMINI
|
||||
models.AlarmCode:
|
||||
enum:
|
||||
- 温度阈值
|
||||
@@ -4755,6 +4771,37 @@ paths:
|
||||
summary: 更新配方
|
||||
tags:
|
||||
- 饲料管理-配方
|
||||
/api/v1/feed/recipes/{id}/ai-diagnose:
|
||||
get:
|
||||
description: 使用AI对指定配方进行点评,并针对目标猪类型给出建议。
|
||||
parameters:
|
||||
- description: 配方ID
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- description: 猪类型ID
|
||||
in: query
|
||||
name: pig_type_id
|
||||
required: true
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: 业务码为200代表AI点评成功
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/controller.Response'
|
||||
- properties:
|
||||
data:
|
||||
$ref: '#/definitions/dto.ReviewRecipeResponse'
|
||||
type: object
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: AI点评配方
|
||||
tags:
|
||||
- 饲料管理-配方
|
||||
/api/v1/feed/recipes/generate-from-all-materials/{pig_type_id}:
|
||||
post:
|
||||
description: 根据指定的猪类型ID,使用系统中所有可用的原料,自动计算并创建一个成本最优的配方。
|
||||
|
||||
Reference in New Issue
Block a user