Spaces:
Runtime error
Runtime error
File size: 1,764 Bytes
36a4021 676c648 36a4021 |
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
package chatgpt
//goland:noinspection GoSnakeCaseUsage
import tls_client "github.com/bogdanfinn/tls-client"
type UserLogin struct {
client tls_client.HttpClient
}
type CreateConversationRequest struct {
Action string `json:"action"`
Messages []Message `json:"messages"`
Model string `json:"model"`
ParentMessageID string `json:"parent_message_id"`
ConversationID *string `json:"conversation_id"`
TimezoneOffsetMin int `json:"timezone_offset_min"`
ArkoseToken string `json:"arkose_token"`
}
type ContinueConversationRequest struct {
Action string `json:"action"`
Model string `json:"model"`
ParentMessageID string `json:"parent_message_id"`
ConversationID *string `json:"conversation_id"`
TimezoneOffsetMin int `json:"timezone_offset_min"`
ArkoseToken string `json:"arkose_token"`
}
type ConversationRespResult struct {
Status bool
ConversationID string
}
type Message struct {
Author Author `json:"author"`
Content Content `json:"content"`
ID string `json:"id"`
}
type Author struct {
Role string `json:"role"`
}
type Content struct {
ContentType string `json:"content_type"`
Parts []string `json:"parts"`
}
type FeedbackMessageRequest struct {
MessageID string `json:"message_id"`
ConversationID string `json:"conversation_id"`
Rating string `json:"rating"`
}
type GenerateTitleRequest struct {
MessageID string `json:"message_id"`
}
type PatchConversationRequest struct {
Title *string `json:"title"`
IsVisible bool `json:"is_visible"`
}
type Cookie struct {
Name string `json:"name"`
Value string `json:"value"`
Expiry int64 `json:"expiry"`
}
|