chore: 更新项目配置和前后端代码优化

This commit is contained in:
2026-04-04 20:10:24 +08:00
parent ef162de168
commit 05b1cbf80d
21 changed files with 3460 additions and 984 deletions

View File

@@ -1,7 +1,5 @@
import { CONVERT_URL } from './config.js'
const API_KEY = 'your-secret-key-here'
function readFileAsBase64(file) {
return new Promise((resolve, reject) => {
const reader = new FileReader()
@@ -25,7 +23,6 @@ export async function convertFileToMarkdown(file) {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': API_KEY,
},
body: JSON.stringify({
file: base64,