mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-08-05 10:28:45 +02:00
Add files via upload
This commit is contained in:
@@ -1337,6 +1337,7 @@ func setupRoutes(
|
|||||||
|
|
||||||
// 对话附件(chat_uploads)管理
|
// 对话附件(chat_uploads)管理
|
||||||
protected.GET("/chat-uploads", chatUploadsHandler.List)
|
protected.GET("/chat-uploads", chatUploadsHandler.List)
|
||||||
|
protected.GET("/chat-uploads/export", chatUploadsHandler.Export)
|
||||||
protected.GET("/chat-uploads/download", chatUploadsHandler.Download)
|
protected.GET("/chat-uploads/download", chatUploadsHandler.Download)
|
||||||
protected.GET("/chat-uploads/content", chatUploadsHandler.GetContent)
|
protected.GET("/chat-uploads/content", chatUploadsHandler.GetContent)
|
||||||
protected.POST("/chat-uploads", chatUploadsHandler.Upload)
|
protected.POST("/chat-uploads", chatUploadsHandler.Upload)
|
||||||
|
|||||||
@@ -861,6 +861,19 @@ func (db *DB) einoReductionBaseDir() string {
|
|||||||
return filepath.Join("tmp", "reduction")
|
return filepath.Join("tmp", "reduction")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// EinoReductionBaseDir returns the configured reduction cache root.
|
||||||
|
func (db *DB) EinoReductionBaseDir() string {
|
||||||
|
return db.einoReductionBaseDir()
|
||||||
|
}
|
||||||
|
|
||||||
|
// ConversationArtifactsBaseDir returns the conversation-scoped artifacts root.
|
||||||
|
func (db *DB) ConversationArtifactsBaseDir() string {
|
||||||
|
if db == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return strings.TrimSpace(db.conversationArtifactsDir)
|
||||||
|
}
|
||||||
|
|
||||||
func (db *DB) einoWorkspaceBaseDir() string {
|
func (db *DB) einoWorkspaceBaseDir() string {
|
||||||
if db == nil {
|
if db == nil {
|
||||||
return ""
|
return ""
|
||||||
|
|||||||
Reference in New Issue
Block a user