Discover Packages
github.com/devops-codegpt/server
response
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jul 31, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type CodeGenerate struct {
Message string `json:"message"`
Status int `json:"status"`
Result Result `json:"result"`
}
type ConversationRun struct {
ID string `json:"id"`
Role string `json:"role"`
Content string `json:"content"`
ContentType string `json:"contentType"`
Model string `json:"models"`
Feedback uint `json:"feedback"`
ParentMsgId string `json:"parentMsgId"`
ConversationId string `json:"conversationId"`
}
type ConversationWS struct {
Message string `json:"message"`
Type string `json:"type"`
Sender string `json:"sender"`
}
type Input struct {
Lang string `json:"lang"`
N int `json:"n"`
Stop []any `json:"stop"`
Text string `json:"text"`
}
type Output struct {
Code []string `json:"code"`
ErrCode int `json:"errCode"`
CompletionTokenNum int `json:"completion_token_num"`
PromptTokenNum int `json:"prompt_token_num"`
}
PageData Encapsulates paginated data
type Result struct {
CreatedAt time .Time `json:"created_at"`
UpdatedAt time .Time `json:"updated_at"`
App string `json:"app"`
Status string `json:"status"`
TaskId string `json:"task_id"`
ProcessTime int `json:"process_time"`
Input Input `json:"input"`
Output Output `json:"output"`
User User `json:"user"`
Progress Progress `json:"progress"`
}
type RoleList struct {
Id uint `json:"id"`
Name string `json:"name"`
Keyword string `json:"keyword"`
Sort uint `json:"sort"`
Desc string `json:"desc"`
Status *uint `json:"status"`
Creator string `json:"creator"`
CreatedAt time .Time `json:"createdAt"`
}
type User struct {
AppId string `json:"appId"`
Id string `json:"id"`
Name string `json:"name"`
}
type UserInfo struct {
Id uint `json:"id"`
Username string `json:"username"`
ZhName string `json:"zhName"`
NickName string `json:"nickName"`
RoleSort uint `json:"roleSort"`
}
type UserList struct {
Id uint `json:"id"`
Username string `json:"username"`
ZhName string `json:"zhName"`
Email string `json:"email"`
Status *uint `json:"status"`
RoleId uint `json:"roleId"`
Creator string `json:"creator"`
CreatedAt time .Time `json:"createdAt"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.