LightRAG/lightrag/api/routers
yangdx 7b07d4c917 feat: 支持 LiteLLM 客户端的 application/octet-stream 请求
修改 Ollama API 路由处理程序,使 /chat 和 /generate 端点能够接受 Content-Type 为 application/octet-stream 的请求。通过绕过 FastAPI 的自动请求验证机制,手动解析请求体,解决了 LiteLLM 客户端连接时出现的 422 错误。此更改保持了对现有 application/json 请求的向后兼容性。
2025-06-11 13:42:30 +08:00
..
__init__.py split lightrag_servery.py to smaller files 2025-02-20 03:26:39 +08:00
document_routes.py Fix linting 2025-05-22 10:06:09 +08:00
graph_routes.py Fix linting 2025-04-14 13:29:56 +08:00
ollama_api.py feat: 支持 LiteLLM 客户端的 application/octet-stream 请求 2025-06-11 13:42:30 +08:00
query_routes.py Fix linting 2025-05-22 09:59:53 +08:00