Documentation
¶
Index ¶
Constants ¶
View Source
const ( BillTableRemark = "备注" BillTableCategory = "分类" BillTableAmount = "金额" BillTableDate = "日期" BillTableMonth = "月份" BillTableExpenses = "收支" BillTableAuthor = "花钱小能手" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AI ¶
type AI struct { Introduction string Functions []AIFunction }
type AIFunction ¶
type AIFunction struct { Name string `json:"name"` Description string `json:"description"` Parameters AIParameter `json:"parameters"` }
type AIFunctionCall ¶
type AIMessage ¶
type AIMessage struct { Role string `json:"role"` Content string `json:"content"` FunctionCall *AIFunctionCall `json:"function_call,omitempty"` }
type AIParameter ¶
type AIParameter struct { Type string `json:"type"` Properties map[string]AIProperty `json:"properties"` Required *[]string `json:"required,omitempty"` }
type AIProperty ¶
type AIReq ¶
type AIReq struct { Model string `json:"model"` Messages []AIMessage `json:"messages"` Functions []AIFunction `json:"functions"` }
type AIResp ¶
type AIResp struct { Id string `json:"id"` Object string `json:"object"` Created int `json:"created"` Model string `json:"model"` Choices []AIChoices `json:"choices"` Usage struct { PromptTokens int `json:"prompt_tokens"` CompletionTokens int `json:"completion_tokens"` TotalTokens int `json:"total_tokens"` } `json:"usage"` }
type AuditLogService ¶
type AuditLogService interface { Send(log AuditLog) StartConsume() }
type BillRepository ¶
type LedgerRepository ¶
Click to show internal directories.
Click to hide internal directories.