-
Notifications
You must be signed in to change notification settings - Fork 14
/
response.go
29 lines (26 loc) · 907 Bytes
/
response.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package chatgpt
type sessionResponse struct {
Error string `json:"error"`
Expires string `json:"expires"`
AccessToken string `json:"accessToken"`
}
type responseMessage struct {
ID string `json:"id"`
Role string `json:"role"`
User interface{} `json:"user"`
CreateTime interface{} `json:"create_time"`
UpdateTime interface{} `json:"update_time"`
Content struct {
ContentType string `json:"content_type"`
Parts []string `json:"parts"`
} `json:"content"`
EndTurn interface{} `json:"end_turn"`
Weight float64 `json:"weight"`
Metadata map[string]interface{} `json:"metadata"`
Recipient string `json:"recipient"`
}
type response struct {
Message responseMessage `json:"message"`
ConversationID string `json:"conversation_id"`
Error interface{} `json:"error"`
}