ffreemt
Add route prefix /hf
931bd01
raw
history blame
471 Bytes
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"`
}