-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtypes.go
57 lines (48 loc) · 1.18 KB
/
types.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
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
package coze
import "github.com/bincooo/emit.io"
type Chat struct {
cookie string
msToken string
opts Options
webSdk bool
messages []interface{}
user string
session *emit.Session
connOpts *emit.ConnectOption
space string
ja3 string
}
type Options struct {
BotId string // 机器人Id
version string // 机器人版本
scene int // 场景??
proxies string // 本地代理
owner bool // 编辑模式
}
type Message struct {
Role string
Content string
}
type resMessage struct {
MessageId string `json:"message_id"`
ReplyId string `json:"reply_id"`
Message struct {
Role string `json:"role"`
Type string `json:"type"`
Content string `json:"content"`
} `json:"message"`
}
type signResponse[T any] struct {
Ok bool
Msg string
Data T
}
type DraftInfo struct {
Model string `json:"model"`
Temperature float32 `json:"temperature"`
TopP float32 `json:"top_p"`
FrequencyPenalty float32 `json:"frequency_penalty"`
PresencePenalty float32 `json:"presence_penalty"`
MaxTokens int `json:"max_tokens"`
ResponseFormat int `json:"response_format"` // 0 Text 1 Markdown 2 JSON
}