Spaces:
Running
Running
File size: 471 Bytes
931bd01 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
package official
type APIRequest struct {
Messages []api_message `json:"messages"`
Stream bool `json:"stream"`
Model string `json:"model"`
PluginIDs []string `json:"plugin_ids"`
}
type api_message struct {
Role string `json:"role"`
Content interface{} `json:"content"`
}
type OpenAISessionToken struct {
SessionToken string `json:"session_token"`
}
type OpenAIRefreshToken struct {
RefreshToken string `json:"refresh_token"`
}
|