Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f4a3ad11
authored
Nov 30, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
im
parent
46a73ad5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
utils/chat-info.ts
utils/chat-info.ts
View file @
f4a3ad11
...
...
@@ -13,12 +13,13 @@ export async function getChatModelInfo(
id
:
string
|
number
,
detailname
?:
string
)
{
if
(
chatInfo
[
id
])
{
const
key
=
`
${
modelName
}
-
${
id
}
`
if
(
chatInfo
[
key
])
{
return
Promise
.
resolve
({
uniplatId
:
chatInfo
[
id
].
row
.
UniplatChatId
.
value
,
chat_id
:
+
chatInfo
[
id
].
row
.
UniplatImChatId
.
value
,
uniplatId
:
chatInfo
[
key
].
row
.
UniplatChatId
.
value
,
chat_id
:
+
chatInfo
[
key
].
row
.
UniplatImChatId
.
value
,
uniplat_version
:
0
,
data
:
chatInfo
[
id
],
data
:
chatInfo
[
key
],
});
}
const
info
=
await
Chat
.
getSdk
()
...
...
@@ -26,7 +27,7 @@ export async function getChatModelInfo(
.
detail
(
id
+
""
,
detailname
)
.
query
();
const
data
=
info
;
chatInfo
[
id
]
=
data
;
chatInfo
[
key
]
=
data
;
return
{
uniplatId
:
info
.
row
.
UniplatChatId
.
value
,
chat_id
:
Number
(
info
.
row
.
UniplatImChatId
.
value
),
...
...
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