feat: mv *.db to data
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
- **🧠 灵活的模型接入**: 原生集成 LiteLLM,支持随插随用 OpenAI、DeepSeek、智谱、通义千问 (DashScope)、火山引擎或任何兼容的 LLM 提供商。
|
- **🧠 灵活的模型接入**: 原生集成 LiteLLM,支持随插随用 OpenAI、DeepSeek、智谱、通义千问 (DashScope)、火山引擎或任何兼容的 LLM 提供商。
|
||||||
- **🛠️ 强大的 Agent 技能拓展**: 基于核心 `nanobot`框架(`OpenClaw`的精简版)构建。支持通过斜杠命令 (`/`) 快速调用自定义工具 (Skills),完美贴合特定业务逻辑。
|
- **🛠️ 强大的 Agent 技能拓展**: 基于核心 `nanobot`框架(`OpenClaw`的精简版)构建。支持通过斜杠命令 (`/`) 快速调用自定义工具 (Skills),完美贴合特定业务逻辑。
|
||||||
- **📊 可定制仪表盘 (Dashboard)**: 一键将对话中生成的图表固定到看板,拖拽布局,随时查看核心指标。
|
- **📊 可定制仪表盘 (Dashboard)**: 一键将对话中生成的图表固定到看板,拖拽布局,随时查看核心指标。
|
||||||
|
- **📦 智能产物管理 (Artifact)**: 自动提取对话中生成的各种文件(网页报告、PDF、PPT、图片等),提供一键内嵌预览与下载功能,让成果触手可及。
|
||||||
|
|
||||||
***
|
***
|
||||||
|
|
||||||
@@ -33,6 +34,10 @@
|
|||||||
<br />
|
<br />
|
||||||
<h3>可定制仪表盘</h3>
|
<h3>可定制仪表盘</h3>
|
||||||
<img src="./examples/dashboard.png" width="80%" />
|
<img src="./examples/dashboard.png" width="80%" />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<h3>智能产物预览 (Artifact)</h3>
|
||||||
|
<img src="./examples/artifact.png" width="80%" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ Whether you're querying a massive Supabase/PostgreSQL database or just tossing i
|
|||||||
- **🧠 Bring Your Own LLM**: Native integration with LiteLLM. Plug in OpenAI, DeepSeek, Zhipu, DashScope, Volcengine, or any compatible provider.
|
- **🧠 Bring Your Own LLM**: Native integration with LiteLLM. Plug in OpenAI, DeepSeek, Zhipu, DashScope, Volcengine, or any compatible provider.
|
||||||
- **🛠️ Extensible Agent Skills**: Built on top of the powerful `nanobot` framework (a lightweight version of `OpenClaw`). Add custom tools and slash commands (`/`) to tailor the agent to your specific business logic.
|
- **🛠️ Extensible Agent Skills**: Built on top of the powerful `nanobot` framework (a lightweight version of `OpenClaw`). Add custom tools and slash commands (`/`) to tailor the agent to your specific business logic.
|
||||||
- **📊 Customizable Dashboards**: Pin your favorite chat-generated charts to a drag-and-drop dashboard for quick access.
|
- **📊 Customizable Dashboards**: Pin your favorite chat-generated charts to a drag-and-drop dashboard for quick access.
|
||||||
|
- **📦 Intelligent Artifact Management**: Automatically extracts generated files (HTML reports, PDFs, PPTs, images, etc.) from conversations, providing embedded previews and one-click downloads.
|
||||||
|
|
||||||
***
|
***
|
||||||
|
|
||||||
@@ -33,6 +34,10 @@ Whether you're querying a massive Supabase/PostgreSQL database or just tossing i
|
|||||||
<br />
|
<br />
|
||||||
<h3>Customizable Dashboard</h3>
|
<h3>Customizable Dashboard</h3>
|
||||||
<img src="./examples/dashboard.png" width="80%" />
|
<img src="./examples/dashboard.png" width="80%" />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<h3>Artifact Preview</h3>
|
||||||
|
<img src="./examples/artifact.png" width="80%" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ from sqlalchemy import create_engine
|
|||||||
from sqlalchemy.ext.declarative import declarative_base
|
from sqlalchemy.ext.declarative import declarative_base
|
||||||
from sqlalchemy.orm import sessionmaker
|
from sqlalchemy.orm import sessionmaker
|
||||||
|
|
||||||
# Use absolute path to ensure dataclaw.db is created in the backend root directory,
|
from app.core.data_root import get_data_root
|
||||||
# preventing nested backend/backend/dataclaw.db issues when starting from different cwd.
|
|
||||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
# Ensure dataclaw.db is created in the global data directory
|
||||||
DB_PATH = os.path.join(BASE_DIR, "dataclaw.db")
|
DB_PATH = get_data_root() / "dataclaw.db"
|
||||||
SQLALCHEMY_DATABASE_URL = f"sqlite:///{DB_PATH}"
|
SQLALCHEMY_DATABASE_URL = f"sqlite:///{DB_PATH}"
|
||||||
|
|
||||||
engine = create_engine(
|
engine = create_engine(
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.5 MiB |
Reference in New Issue
Block a user