ai_api_dto

package
v1.3.0-beta Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Id          string    `json:"id"`
	Name        string    `json:"name"`
	Path        string    `json:"path"`
	Description string    `json:"description"`
	Disable     bool      `json:"disable"`
	AiPrompt    *AiPrompt `json:"ai_prompt"`
	AiModel     *AiModel  `json:"ai_model"`
	Timeout     int       `json:"timeout"`
	Retry       int       `json:"retry"`
}

type APIItem

type APIItem struct {
	Id          string         `json:"id"`
	Name        string         `json:"name"`
	RequestPath string         `json:"request_path"`
	Description string         `json:"description"`
	Disable     bool           `json:"disable"`
	Creator     auto.Label     `json:"creator" aolabel:"user"`
	Updater     auto.Label     `json:"updater" aolabel:"user"`
	CreateTime  auto.TimeLabel `json:"create_time"`
	UpdateTime  auto.TimeLabel `json:"update_time"`
	Provider    ProviderItem   `json:"provider"`
	Model       ModelItem      `json:"model"`
}

type AiModel

type AiModel struct {
	Id       string `json:"id"`
	Config   string `json:"config"`
	Provider string `json:"provider"`
}

type AiPrompt

type AiPrompt struct {
	Variables []*AiPromptVariable `json:"variables"`
	Prompt    string              `json:"prompt"`
}

type AiPromptVariable

type AiPromptVariable struct {
	Key         string `json:"key"`
	Description string `json:"description"`
	Require     bool   `json:"require"`
}

type CreateAPI

type CreateAPI struct {
	Id          string    `json:"id"`
	Name        string    `json:"name"`
	Path        string    `json:"path"`
	Description string    `json:"description"`
	Disable     bool      `json:"disable"`
	AiPrompt    *AiPrompt `json:"ai_prompt"`
	AiModel     *AiModel  `json:"ai_model"`
	Timeout     int       `json:"timeout"`
	Retry       int       `json:"retry"`
}

type EditAPI

type EditAPI struct {
	Name        *string   `json:"name"`
	Path        *string   `json:"path"`
	Description *string   `json:"description"`
	Disable     *bool     `json:"disable"`
	AiPrompt    *AiPrompt `json:"ai_prompt"`
	AiModel     *AiModel  `json:"ai_model"`
	Timeout     *int      `json:"timeout"`
	Retry       *int      `json:"retry"`
}

type ModelItem

type ModelItem struct {
	Id   string `json:"id"`
}

type ProviderItem

type ProviderItem struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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