package
Version:
v0.0.0-...-fe41dbe
Opens a new window with list of versions in this module.
Published: Mar 2, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AccessToken struct {
Token string `json:"access_token"`
Expire int `json:"expires_in"`
Code int `json:"errcode"`
Msg string `json:"errmsg"`
}
type Choice struct {
Text Message `json:"message"`
Index int64 `json:"index"`
FinishReason string `json:"finish_reason"`
}
type GptAnswer struct {
ID string `json:"id"`
Object string `json:"object"`
Created int64 `json:"created"`
Model string `json:"model"`
Choices []Choice `json:"choices"`
Usage Usage `json:"usage"`
}
type GptMessage struct {
Role string `json:"role"`
Content string `json:"content"`
}
type GptQuestion struct {
Qst []GptMessage `json:"messages"`
Model string `json:"model"`
}
type GptReq struct {
Id string `json:"id"`
Qst string `json:"question"`
}
type Message struct {
Role string `json:"role"`
Content string `json:"content"`
}
type ServiceMessageText struct {
Content string `json:"content"`
}
type TemplateMessage struct {
ToUser string `json:"touser"`
TmpId string `json:"template_id"`
}
type Usage struct {
PromptTokens int64 `json:"prompt_tokens"`
CompletionTokens int64 `json:"completion_tokens"`
TotalTokens int64 `json:"total_tokens"`
}
type User struct {
Id string `json:"id"`
AvailableTimes int `json:"available_times"`
Expired int64 `json:"ttl"`
Vip bool `json:"vip"`
RegisterTime int64 `json:"register_time"`
}
type UserInfo struct {
ToName string `xml:"ToUserName"`
FromName string `xml:"FromUserName"`
CreateTime int64 `xml:"CreateTime"`
MsgType string `xml:"MsgType"`
Content string `xml:"Content"`
XMLName xml.Name `xml:"xml"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.