mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-12-26 01:55:58 +08:00
feat: refactor MidJourney service for conpatible drawing in chat and draw in app
This commit is contained in:
@@ -49,15 +49,6 @@ type ChatModel struct {
|
||||
Value string `json:"value"`
|
||||
}
|
||||
|
||||
type MjTask struct {
|
||||
ChatId string
|
||||
MessageId string
|
||||
MessageHash string
|
||||
UserId uint
|
||||
RoleId uint
|
||||
Icon string
|
||||
}
|
||||
|
||||
type ApiError struct {
|
||||
Error struct {
|
||||
Message string
|
||||
@@ -77,5 +68,3 @@ var ModelToTokens = map[string]int{
|
||||
"gpt-4": 8192,
|
||||
"gpt-4-32k": 32768,
|
||||
}
|
||||
|
||||
const TaskStorePrefix = "/tasks/"
|
||||
|
||||
Reference in New Issue
Block a user