瀏覽代碼

chore: exclude .txt extenstion in create_by_text API (#6956)

Sangmin Ahn 8 月之前
父節點
當前提交
dd676866aa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/services/file_service.py

+ 1 - 1
api/services/file_service.py

@@ -109,7 +109,7 @@ class FileService:
             tenant_id=current_user.current_tenant_id,
             storage_type=dify_config.STORAGE_TYPE,
             key=file_key,
-            name=text_name + '.txt',
+            name=text_name,
             size=len(text),
             extension='txt',
             mime_type='text/plain',