with one click
backend-fastapi
Documentation for the FastAPI backend, endpoints, and dependency injection.
Menu
Documentation for the FastAPI backend, endpoints, and dependency injection.
| name | backend-fastapi |
| description | Documentation for the FastAPI backend, endpoints, and dependency injection. |
The backend is a FastAPI application located in backend/. It powers the chatbot and RAG functionality.
backend/main.pyuvicorn backend.main:app --reload (or via npm run dev)8000.POST /api/chatChatRequest (query, history, user_context).search_qdrant).build_rag_prompt).ChatResponse (answer, contexts).POST /api/ask-selectionAskSelectionRequest (question, selected_text).backend/utils/config.py: Qdrant initialization.backend/utils/helpers.py: Embedding and Prompt building logic.backend/models.py: OpenAI/Gemini client setup.GEMINI_API_KEY: For LLM and Embeddings.QDRANT_URL, QDRANT_API_KEY: Vector DB connection.Professional frontend standards for building, scaffolding, extending, or reviewing any UI or frontend project — new or existing — even when standards aren't explicitly asked for. Keeps generated code consistent, reusable, secure, and production-quality. Framework-agnostic: React, Vue, Angular, Svelte, plain JS.
发布本地生成的 HTML、Markdown、TXT、PDF、Word 或 PPTX 到 ShareOne 平台,生成公网分享短链接;或者当用户提供 ShareOne 链接并要求下载文件、修改文件、拉取/处理评论时使用此技能。当用户要求“发布”、“分享”、“生成链接”、“上线”,或者“下载这个链接的文件”、“修改这个 ShareOne 链接的内容”、“拉取这个链接的评论”时,必须使用此技能。
Generate AI chat completions using GPT-4o through the verging.ai proxy API with streaming (SSE) and non-streaming response support.
Convert text to speech audio using OpenAI TTS-1-HD through the verging.ai proxy API. Supports multiple voices, playback speed control, and various audio output formats.
Generate AI images using DALL-E 3 or gpt-image-1 through the verging.ai proxy API. Supports standard and HD quality, multiple images per request, and returns CDN-hosted image URLs.
Analyze images using GPT-4o Vision through the verging.ai proxy API, supporting both image URL (JSON) and file upload (multipart) modes.