mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-15 04:33:42 +08:00
♻️ refactor: 重构moderation接口
This commit is contained in:
12
types/moderation.go
Normal file
12
types/moderation.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package types
|
||||
|
||||
type ModerationRequest struct {
|
||||
Input string `json:"input,omitempty"`
|
||||
Model string `json:"model,omitempty"`
|
||||
}
|
||||
|
||||
type ModerationResponse struct {
|
||||
ID string `json:"id"`
|
||||
Model string `json:"model"`
|
||||
Results any `json:"results"`
|
||||
}
|
||||
Reference in New Issue
Block a user