From 3fbcd4a5e1456eb6d7b93ce4ab5f5a4ebdc68481 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 15 Dec 2024 09:54:18 +0800 Subject: [PATCH] Add support for JSON file type in AllowedFileTypes across assistant modules --- neo/assistant/base/file.go | 1 + neo/assistant/openai/file.go | 1 + 2 files changed, 2 insertions(+) diff --git a/neo/assistant/base/file.go b/neo/assistant/base/file.go index 487182de..8b7738f4 100644 --- a/neo/assistant/base/file.go +++ b/neo/assistant/base/file.go @@ -16,6 +16,7 @@ import ( // AllowedFileTypes the allowed file types var AllowedFileTypes = map[string]string{ + "application/json": "json", "application/pdf": "pdf", "application/msword": "doc", "application/vnd.openxmlformats-officedocument.wordprocessingml.document": "docx", diff --git a/neo/assistant/openai/file.go b/neo/assistant/openai/file.go index 9c52801d..7405d7eb 100644 --- a/neo/assistant/openai/file.go +++ b/neo/assistant/openai/file.go @@ -16,6 +16,7 @@ import ( // AllowedFileTypes the allowed file types var AllowedFileTypes = map[string]string{ + "application/json": "json", "application/pdf": "pdf", "application/msword": "doc", "application/vnd.openxmlformats-officedocument.wordprocessingml.document": "docx",