You've already forked DataMate
feature: deer-flow支持从datamate获取外部接入模型 (#83)
* feature: deer-flow支持从datamate获取外部接入模型
This commit is contained in:
@@ -9,6 +9,7 @@ CREATE TABLE IF NOT EXISTS t_model_config
|
||||
api_key VARCHAR(512) DEFAULT '' COMMENT 'API 密钥(无密钥则为空)',
|
||||
type VARCHAR(50) NOT NULL COMMENT '模型类型(如 chat、embedding)',
|
||||
is_enabled TINYINT DEFAULT 1 COMMENT '是否启用:1-启用,0-禁用',
|
||||
is_default TINYINT DEFAULT 0 COMMENT '是否默认:1-默认,0-非默认',
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
created_by VARCHAR(255) COMMENT '创建者',
|
||||
|
||||
@@ -11,13 +11,10 @@ RUN apt-get update && apt-get install -y \
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the application into the container.
|
||||
RUN git clone https://github.com/bytedance/deer-flow.git /app
|
||||
COPY runtime/deer-flow/feature_collection.patch /app/feature_collection.patch
|
||||
RUN git clone https://github.com/ModelEngine-Group/deer-flow.git /app
|
||||
COPY runtime/deer-flow/.env /app/.env
|
||||
COPY runtime/deer-flow/conf.yaml /app/conf.yaml
|
||||
|
||||
RUN git apply feature_collection.patch
|
||||
|
||||
# Pre-cache the application dependencies.
|
||||
RUN --mount=type=cache,target=/root/.cache/uv \
|
||||
uv sync --locked --no-install-project
|
||||
|
||||
@@ -4,7 +4,7 @@ FROM node:20-alpine AS deps
|
||||
RUN apk add --no-cache libc6-compat openssl git
|
||||
WORKDIR /app
|
||||
|
||||
RUN git clone https://github.com/bytedance/deer-flow.git /deer-flow \
|
||||
RUN git clone https://github.com/ModelEngine-Group/deer-flow.git /deer-flow \
|
||||
&& mv /deer-flow/web/* /app \
|
||||
&& rm -rf /deer-flow
|
||||
# Install dependencies based on the preferred package manager
|
||||
@@ -24,12 +24,9 @@ RUN apk add --no-cache git
|
||||
WORKDIR /app
|
||||
ARG NEXT_PUBLIC_API_URL="/deer-flow-backend"
|
||||
|
||||
RUN git clone https://github.com/bytedance/deer-flow.git /deer-flow
|
||||
|
||||
COPY runtime/deer-flow/feature_collection.patch /deer-flow/feature_collection.patch
|
||||
RUN git clone https://github.com/ModelEngine-Group/deer-flow.git /deer-flow
|
||||
|
||||
RUN cd /deer-flow \
|
||||
&& git apply feature_collection.patch \
|
||||
&& mv /deer-flow/web/* /app \
|
||||
&& rm -rf /deer-flow
|
||||
|
||||
|
||||
Reference in New Issue
Block a user