mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-26 20:06:37 +08:00
29 lines
989 B
Go
29 lines
989 B
Go
package scholarai
|
|
|
|
type ScholarAIMessage struct {
|
|
Role string `json:"role"`
|
|
Content string `json:"content"`
|
|
}
|
|
|
|
type ScholarAIChatRequest struct {
|
|
Model string `json:"model,omitempty"`
|
|
Messages []ScholarAIMessage `json:"messages,omitempty"`
|
|
Stream bool `json:"stream,omitempty"`
|
|
}
|
|
|
|
type ScholarAITextResponseChoice struct {
|
|
Index int `json:"index"`
|
|
ScholarAIMessage `json:"message"`
|
|
FinishReason string `json:"finish_reason"`
|
|
}
|
|
|
|
type ScholarAITextResponse struct {
|
|
Id string `json:"id"`
|
|
Object string `json:"object"`
|
|
Created int64 `json:"created"`
|
|
Model string `json:"model"`
|
|
Logprods string `json:"logprods"`
|
|
Choices []ScholarAITextResponseChoice `json:"choices"`
|
|
SystemFingerprint string `json:"system_fingerprint"`
|
|
}
|