mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-07-22 05:03:02 +08:00
feat: 添加硅基流动(SiliconFlow)支持和错误处理优化
## 主要更新 ### 新增功能 - 新增 SiliconFlow_provider.py 专用提供商 - 添加硅基流动 API 集成文档 - 实现 Cherry Studio 风格的连接测试 ### 错误处理优化 - 修复前端 Form.tsx 错误显示问题 - 改进 universal_gpt.py 异常处理逻辑 - 统一 URL 格式处理,避免路径重复 ### 兼容性改进 - 优化 OpenAI 兼容提供商 URL 处理 - 增强模型列表获取的容错性 - 添加详细的调试日志 ### 安全性提升 - 更新 .gitignore 保护敏感信息 - 移除示例配置文件 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
50
.gitignore
vendored
50
.gitignore
vendored
@@ -308,6 +308,7 @@ cython_debug/
|
||||
|
||||
# PyPI configuration file
|
||||
.pypirc
|
||||
# 项目特定的私人信息和敏感文件
|
||||
/backend/data/*
|
||||
/backend/static/*
|
||||
/backend/note_tasks.db
|
||||
@@ -321,4 +322,51 @@ cython_debug/
|
||||
/backend/.idea/*
|
||||
/backend/config/*
|
||||
/BiliNote_frontend/.idea/*
|
||||
/BiliNote_frontend/src-tauri/bin/
|
||||
/BiliNote_frontend/src-tauri/bin/
|
||||
|
||||
# 额外需要忽略的敏感文件和目录
|
||||
/backend/test_env/
|
||||
/backend/test_*.py
|
||||
/backend/venv/
|
||||
/backend/get-pip.py
|
||||
/backend/fonts/
|
||||
*.db
|
||||
*.sqlite
|
||||
*.sqlite3
|
||||
*_backup.sql
|
||||
|
||||
# API测试脚本(可能包含敏感信息)
|
||||
test_siliconflow.py
|
||||
test_*.py
|
||||
|
||||
# 模型文件和缓存(通常很大,且可能有版权问题)
|
||||
/backend/models/
|
||||
whisper*/
|
||||
*.bin
|
||||
*.safetensors
|
||||
*.gguf
|
||||
|
||||
# 用户生成内容
|
||||
/backend/uploads/*
|
||||
/backend/data/*
|
||||
/backend/note_results/*
|
||||
/backend/static/screenshots/*
|
||||
/backend/static/cover/*
|
||||
|
||||
# 临时测试环境
|
||||
test_env/
|
||||
*_env/
|
||||
|
||||
# 配置文件(可能包含API keys)
|
||||
/backend/config/*
|
||||
config.json
|
||||
settings.json
|
||||
|
||||
# 备份文件
|
||||
*.bak
|
||||
*.bak2
|
||||
*_backup.*
|
||||
|
||||
# 输出和缓存目录
|
||||
/backend/data/output_frames/*
|
||||
/backend/data/grid_output/*
|
||||
Reference in New Issue
Block a user