mirror of
https://github.com/coaidev/coai.git
synced 2025-05-21 05:50:14 +09:00
22 lines
473 B
Go
22 lines
473 B
Go
package globals
|
|
|
|
type Message struct {
|
|
Role string `json:"role"`
|
|
Content string `json:"content"`
|
|
}
|
|
|
|
type ChatSegmentResponse struct {
|
|
Quota float32 `json:"quota"`
|
|
Keyword string `json:"keyword"`
|
|
Message string `json:"message"`
|
|
End bool `json:"end"`
|
|
}
|
|
|
|
type GenerationSegmentResponse struct {
|
|
Quota float32 `json:"quota"`
|
|
Message string `json:"message"`
|
|
Hash string `json:"hash"`
|
|
End bool `json:"end"`
|
|
Error string `json:"error"`
|
|
}
|