Documentation ¶
Index ¶
Constants ¶
View Source
const LLMAPIURL = "https://api.coze.com/open_api/v2/chat"
Variables ¶
View Source
var GinWriter *logr.Writer
View Source
var Logger *logr.Logger
View Source
var Support *logr.Logger
Functions ¶
Types ¶
type BinancePrice ¶
type BitfinexPrice ¶
func (*BitfinexPrice) UnmarshalJSON ¶
func (b *BitfinexPrice) UnmarshalJSON(buf []byte) error
type ChatHistory ¶ added in v1.0.38
type ChatHistory []*HistoryItem
type HistoryItem ¶ added in v1.0.38
type HistoryItem struct { Role string `json:"role"` Type string `json:"type"` Content string `json:"content"` }
func (*HistoryItem) String ¶ added in v1.0.38
func (hi *HistoryItem) String() string
type HitbtcPrice ¶
type RequestBody ¶ added in v1.0.38
type ResponseBody ¶ added in v1.0.38
type ResponseBody struct { Messages ChatHistory `json:"messages"` ConversationId string `json:"conversation_id"` Code int `json:"code"` Msg string `json:"msg"` }
func (*ResponseBody) Answer ¶ added in v1.0.38
func (r *ResponseBody) Answer() *HistoryItem
Click to show internal directories.
Click to hide internal directories.