Spaces:
Running
Running
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"` | |
} | |