callback

package
v0.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DocStatusInit

func DocStatusInit(ctx *gin.Context)

DocStatusInit

@Tags			callback
@Summary		将正在解析的文档设置为解析失败
@Description	将正在解析的文档设置为解析失败
@Accept			json
@Produce		json
@Success		200	{object}	response.Response{}
@Router			/api/doc_status_init [get]

func FileUrlConvertBase64 added in v0.2.8

func FileUrlConvertBase64(ctx *gin.Context)

FileUrlConvertBase64

@Tags		callback
@Summary	文件Url转换为base64
@Accept		json
@Produce	json
@Param		data	body		request.FileUrlConvertBase64Req	true	"文件Url转换base64请求参数"
@Success	200		{object}	response.Response{data=string}
@Router		/file/url/base64 [post]

func GetDeployInfo

func GetDeployInfo(ctx *gin.Context)

GetDeployInfo

@Tags			callback
@Summary		获取Maas平台部署信息(模型扩展调用)
@Description	获取Maas平台部署信息(模型扩展调用)
@Accept			json
@Produce		json
@Success		200	{object}	response.Response{}
@Router			/api/deploy/info [get]

func GetModelById

func GetModelById(ctx *gin.Context)

GetModelById

@Tags		callback
@Summary	根据ModelId获取模型
@Accept		json
@Produce	json
@Param		modelId	path		string	true	"模型ID"
@Success	200		{object}	response.Response{data=response.ModelInfo}
@Router		/model/{modelId} [get]

func GetWorkflowCustomTool added in v0.2.4

func GetWorkflowCustomTool(ctx *gin.Context)

GetWorkflowCustomTool

@Tags			callback
@Summary		获取自定义工具详情
@Description	获取自定义工具详情
@Accept			json
@Produce		json
@Param			customToolId	query		string	true	"customToolId"
@Success		200				{object}	response.Response{data=response.CustomToolDetail}
@Router			/workflow/tool/custom [get]

func GetWorkflowList added in v0.2.3

func GetWorkflowList(ctx *gin.Context)

GetWorkflowList

@Tags			callback
@Summary		根据userId和spaceId获取Workflow
@Description	根据userId和spaceId获取Workflow
@Accept			json
@Produce		json
@Param			userId	query		string	true	"获取工作流参数userId"
@Param			orgId	query		string	true	"获取工作流参数orgId"
@Success		200		{object}	response.Response
@Router			/workflow/list [get]

func GetWorkflowSquareTool added in v0.2.4

func GetWorkflowSquareTool(ctx *gin.Context)

GetWorkflowSquareTool

@Tags			callback
@Summary		获取内置工具详情
@Description	获取内置工具详情
@Accept			json
@Produce		json
@Param			toolSquareId	query		string	true	"toolSquareId"
@Param			userID			query		string	true	"用户ID"
@Param			orgID			query		string	true	"组织ID"
@Success		200				{object}	response.Response{data=response.ToolSquareDetail}
@Router			/workflow/tool/square [get]

func KnowledgeStreamSearch added in v0.2.5

func KnowledgeStreamSearch(ctx *gin.Context)

KnowledgeStreamSearch

@Tags			callback
@Summary		知识库流式问答
@Description	知识库流式问答
@Accept			json
@Produce		json
@Param			data	body		request.RagKnowledgeChatReq	true	"知识库流式问答请求参数"
@Success		200		{object}	response.Response
@Router			/rag/knowledge/stream/search [post]

func ModelChatCompletions

func ModelChatCompletions(ctx *gin.Context)

ModelChatCompletions

@Tags		callback
@Summary	Model Chat Completions
@Accept		json
@Produce	json
@Param		modelId	path		string				true	"模型ID"
@Param		data	body		mp_common.LLMReq{}	true	"请求参数"
@Success	200		{object}	mp_common.LLMResp{}
@Router		/model/{modelId}/chat/completions [post]

func ModelEmbeddings

func ModelEmbeddings(ctx *gin.Context)

ModelEmbeddings

@Tags		callback
@Summary	Model Embeddings
@Accept		json
@Produce	json
@Param		modelId	path		string						true	"模型ID"
@Param		data	body		mp_common.EmbeddingReq{}	true	"请求参数"
@Success	200		{object}	mp_common.EmbeddingResp{}
@Router		/model/{modelId}/embeddings [post]

func ModelGui added in v0.2.1

func ModelGui(ctx *gin.Context)

ModelGui

@Tags		callback
@Summary	Model Gui
@Accept		json
@Produce	json
@Param		modelId	path		string				true	"模型ID"
@Param		data	body		mp_common.GuiReq{}	true	"请求参数"
@Success	200		{object}	mp_common.GuiResp{}
@Router		/model/{modelId}/gui [post]

func ModelOcr added in v0.1.5

func ModelOcr(ctx *gin.Context)

ModelOcr

@Tags		callback
@Summary	Model Ocr
@Accept		multipart/form-data
@Produce	json
@Param		modelId	path		string	true	"模型ID"
@Param		file	formData	file	true	"文件"
@Success	200		{object}	mp_common.OcrResp{}
@Router		/model/{modelId}/ocr [post]

func ModelPdfParser added in v0.2.3

func ModelPdfParser(ctx *gin.Context)

ModelPdfParser

@Tags		callback
@Summary	Model PdfParser
@Accept		multipart/form-data
@Produce	json
@Param		modelId		path		string	true	"模型ID"
@Param		file		formData	file	true	"文件"
@Param		file_name	formData	string	true	"文件名"
@Success	200			{object}	mp_common.PdfParserResp{}
@Router		/model/{modelId}/pdf-parser [post]

func ModelRerank

func ModelRerank(ctx *gin.Context)

ModelRerank

@Tags		callback
@Summary	Model Rerank
@Accept		json
@Produce	json
@Param		modelId	path		string					true	"模型ID"
@Param		data	body		mp_common.RerankReq{}	true	"请求参数"
@Success	200		{object}	mp_common.RerankResp{}
@Router		/model/{modelId}/rerank [post]

func SearchKnowledgeBase added in v0.2.5

func SearchKnowledgeBase(ctx *gin.Context)

SearchKnowledgeBase

@Tags			callback
@Summary		查询知识库列表(命中测试)
@Description	查询知识库列表(命中测试)
@Accept			json
@Produce		json
@Param			data	body		request.RagSearchKnowledgeBaseReq	true	"查询知识库列表请求参数"
@Success		200		{object}	response.Response
@Router			/rag/search-knowledge-base [post]

func SelectKnowledgeInfoByName

func SelectKnowledgeInfoByName(ctx *gin.Context)

SelectKnowledgeInfoByName

@Tags			callback
@Summary		获取Maas平台知识库信息(模型扩展调用)
@Description	获取Maas平台知识库信息(模型扩展调用)
@Accept			json
@Produce		json
@Param			data	body		request.SearchKnowledgeInfoReq	true	"根据知识库名称请求参数"
@Success		200		{object}	response.Response{}
@Router			/api/category/info [get]

func UpdateDocStatus

func UpdateDocStatus(ctx *gin.Context)

UpdateDocStatus

@Tags			callback
@Summary		更新文档状态(模型扩展调用)
@Description	更新文档状态(模型扩展调用)
@Accept			json
@Produce		json
@Param			data	body		request.CallbackUpdateDocStatusReq	true	"更新文档状态请求参数"
@Success		200		{object}	response.Response
@Router			/api/docstatus [post]

func UpdateKnowledgeStatus added in v0.2.7

func UpdateKnowledgeStatus(ctx *gin.Context)

UpdateKnowledgeStatus

@Tags			callback
@Summary		更新知识库状态
@Description	更新知识库状态
@Accept			json
@Produce		json
@Param			data	body		request.CallbackUpdateDocStatusReq	true	"更新知识库状态请求参数"
@Success		200		{object}	response.Response
@Router			/api/knowledge/status [post]

func WorkflowUploadFile added in v0.2.8

func WorkflowUploadFile(ctx *gin.Context)

WorkflowUploadFile

@Tags		callback
@Summary	通过二进制上传文件
@Accept		multipart/form-data
@Produce	json
@Param		file		formData	file	true	"文件"
@Param		fileName	formData	string	true	"文件名"
@Success	200			{object}	response.Response{data=response.UploadFileByWorkflowResp}
@Router		/workflow/upload/file [post]

func WorkflowUploadFileByBase64 added in v0.2.8

func WorkflowUploadFileByBase64(ctx *gin.Context)

WorkflowUploadFileByBase64

@Tags		callback
@Summary	通过base64上传文件
@Accept		json
@Produce	json
@Param		data	body		request.WorkflowUploadFileByBase64Req	true	"通过base64格式上传文件参数"
@Success	200		{object}	response.Response{data=response.UploadFileByWorkflowResp}
@Router		/workflow/upload/file/base64 [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL