Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ai
/
ai-workflow
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 47500ce6
authored
May 23, 2026
by
sunqi02
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新IM对应
1 parent
724a2f0c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
workspace/agent-admin/backend/.env.example
workspace/agent-admin/backend/app/main.py
workspace/agent-admin/backend/docker-compose.prod.yml
workspace/agent-admin/backend/docker-compose.yml
workspace/agent-admin/backend/.env.example
View file @
47500ce
...
@@ -4,5 +4,5 @@ DATABASE_URL=sqlite:///./dev.db
...
@@ -4,5 +4,5 @@ DATABASE_URL=sqlite:///./dev.db
# IM 服务
# IM 服务
USE_CONSOLE_IM=false
USE_CONSOLE_IM=false
IM_BASE_URL=http://
im-service:80
IM_BASE_URL=http://
yjy.dev.glsx.com.cn/webim
IM_API_KEY=
your-api-key
IM_API_KEY=
workspace/agent-admin/backend/app/main.py
View file @
47500ce
...
@@ -35,12 +35,12 @@ async def lifespan(app: FastAPI):
...
@@ -35,12 +35,12 @@ async def lifespan(app: FastAPI):
db
=
SessionLocal
()
db
=
SessionLocal
()
session_service
=
SessionService
(
db
)
session_service
=
SessionService
(
db
)
if
os
.
getenv
(
"USE_CONSOLE_IM"
,
"
tru
e"
)
.
lower
()
==
"true"
:
if
os
.
getenv
(
"USE_CONSOLE_IM"
,
"
fals
e"
)
.
lower
()
==
"true"
:
im_service
=
ConsoleIMService
()
im_service
=
ConsoleIMService
()
else
:
else
:
im_service
=
IMService
(
im_service
=
IMService
(
base_url
=
os
.
getenv
(
"IM_BASE_URL"
,
"http://
localhost:8080
"
),
base_url
=
os
.
getenv
(
"IM_BASE_URL"
,
"http://
yjy.dev.glsx.com.cn/webim
"
),
api_key
=
os
.
getenv
(
"IM_API_KEY"
,
"your-api-key"
)
,
api_key
=
os
.
getenv
(
"IM_API_KEY"
)
or
None
,
)
)
agent_hub_instance
=
AgentHub
(
agent_hub_instance
=
AgentHub
(
...
...
workspace/agent-admin/backend/docker-compose.prod.yml
View file @
47500ce
...
@@ -9,7 +9,7 @@ services:
...
@@ -9,7 +9,7 @@ services:
required
:
false
required
:
false
environment
:
environment
:
-
DATABASE_URL=${DATABASE_URL}
-
DATABASE_URL=${DATABASE_URL}
-
IM_BASE_URL=${IM_BASE_URL}
-
IM_BASE_URL=${IM_BASE_URL
:-http://yjy.dev.glsx.com.cn/webim
}
-
USE_CONSOLE_IM=${USE_CONSOLE_IM:-false}
-
USE_CONSOLE_IM=${USE_CONSOLE_IM:-false}
deploy
:
deploy
:
resources
:
resources
:
...
...
workspace/agent-admin/backend/docker-compose.yml
View file @
47500ce
...
@@ -15,8 +15,8 @@ services:
...
@@ -15,8 +15,8 @@ services:
required
:
false
required
:
false
environment
:
environment
:
-
DATABASE_URL=${DATABASE_URL:-sqlite:///./dev.db}
-
DATABASE_URL=${DATABASE_URL:-sqlite:///./dev.db}
-
IM_BASE_URL=${IM_BASE_URL:-http://
im-service:80
}
-
IM_BASE_URL=${IM_BASE_URL:-http://
yjy.dev.glsx.com.cn/webim
}
-
USE_CONSOLE_IM=${USE_CONSOLE_IM:-
tru
e}
-
USE_CONSOLE_IM=${USE_CONSOLE_IM:-
fals
e}
depends_on
:
depends_on
:
-
im-service
-
im-service
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment