Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
db_gpt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linyangyang
db_gpt
Commits
78ee1f84
Commit
78ee1f84
authored
Sep 27, 2024
by
于飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改报错信息
parent
cb0a1fe6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
keywordsviews.py
dbgpt/app/apps/vadmin/keywordsviews.py
+3
-3
api_v1.py
dbgpt/app/openapi/api_v1/api_v1.py
+1
-1
start
start
+1
-0
No files found.
dbgpt/app/apps/vadmin/keywordsviews.py
View file @
78ee1f84
...
@@ -84,7 +84,7 @@ async def get_media_datas_by(conv_uid: str, words: str, db: AsyncSession, knownl
...
@@ -84,7 +84,7 @@ async def get_media_datas_by(conv_uid: str, words: str, db: AsyncSession, knownl
if
len
(
datas
)
>
0
:
if
len
(
datas
)
>
0
:
result
=
[]
result
=
[]
corrdata
=
datas
[
0
]
corrdata
=
datas
[
0
]
image_datas
=
corrdata
.
get
(
'image_group'
)
image_datas
=
corrdata
.
get
(
'image_group'
)
or
[]
for
image_groups
in
image_datas
:
for
image_groups
in
image_datas
:
image_groupid
=
image_groups
.
get
(
'group_id'
)
image_groupid
=
image_groups
.
get
(
'group_id'
)
print
(
f
"===========>image_groupid:{image_groupid}"
)
print
(
f
"===========>image_groupid:{image_groupid}"
)
...
@@ -101,7 +101,7 @@ async def get_media_datas_by(conv_uid: str, words: str, db: AsyncSession, knownl
...
@@ -101,7 +101,7 @@ async def get_media_datas_by(conv_uid: str, words: str, db: AsyncSession, knownl
'local_path'
:
data
.
get
(
'local_path'
),
'remote_path'
:
data
.
get
(
'remote_path'
)}
'local_path'
:
data
.
get
(
'local_path'
),
'remote_path'
:
data
.
get
(
'remote_path'
)}
result
.
append
(
json_image
)
result
.
append
(
json_image
)
video_datas
=
corrdata
.
get
(
'video_group'
)
video_datas
=
corrdata
.
get
(
'video_group'
)
or
[]
for
video_groups
in
video_datas
:
for
video_groups
in
video_datas
:
video_groupid
=
video_groups
.
get
(
'group_id'
)
video_groupid
=
video_groups
.
get
(
'group_id'
)
print
(
f
"===========>video_groupid:{video_groupid}"
)
print
(
f
"===========>video_groupid:{video_groupid}"
)
...
@@ -119,7 +119,7 @@ async def get_media_datas_by(conv_uid: str, words: str, db: AsyncSession, knownl
...
@@ -119,7 +119,7 @@ async def get_media_datas_by(conv_uid: str, words: str, db: AsyncSession, knownl
'remote_path'
:
videodata
.
get
(
'remote_path'
)}
'remote_path'
:
videodata
.
get
(
'remote_path'
)}
result
.
append
(
json_video
)
result
.
append
(
json_video
)
question_datas
=
corrdata
.
get
(
'question_group'
)
question_datas
=
corrdata
.
get
(
'question_group'
)
or
[]
for
question_groups
in
question_datas
:
for
question_groups
in
question_datas
:
question_groupid
=
question_groups
.
get
(
'group_id'
)
question_groupid
=
question_groups
.
get
(
'group_id'
)
print
(
f
"===========>question_groupid:{question_groupid}"
)
print
(
f
"===========>question_groupid:{question_groupid}"
)
...
...
dbgpt/app/openapi/api_v1/api_v1.py
View file @
78ee1f84
...
@@ -361,7 +361,7 @@ async def chat_completions(
...
@@ -361,7 +361,7 @@ async def chat_completions(
):
):
#dialogue.select_param 这个参数为 : 知识库名称
#dialogue.select_param 这个参数为 : 知识库名称
logger
.
info
(
logger
.
info
(
f
"chat_completions:{dialogue.chat_mode},{dialogue.
select_param},{dialogue.model_nam
e}"
f
"chat_completions:{dialogue.chat_mode},{dialogue.
model_name},==>dialogue:{dialogu
e}"
)
)
headers
=
{
headers
=
{
"Content-Type"
:
"text/event-stream"
,
"Content-Type"
:
"text/event-stream"
,
...
...
start
View file @
78ee1f84
#!/bin/bash
#!/bin/bash
echo
Starting...
echo
Starting...
conda acitvate dbgpt_env1
nohup
dbgpt start webserver
--port
6006
>
/dev/null 2>&1 &
nohup
dbgpt start webserver
--port
6006
>
/dev/null 2>&1 &
sleep
10
sleep
10
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment