Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
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
mobile-group
galaxy-iOS
Commits
cee6ad4e
Commit
cee6ad4e
authored
Dec 05, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// AI
parent
9d72dc4a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
YHAIChatConfiguration.swift
...odules/AI/AI-Dialogue(AI对话)/C/YHAIChatConfiguration.swift
+8
-7
YHAIServiceListViewController.swift
...I/AI-Dialogue(AI对话)/C/YHAIServiceListViewController.swift
+2
-2
YHAIListModel.swift
...lasses/Modules/AI/AI-Dialogue(AI对话)/M/YHAIListModel.swift
+0
-1
No files found.
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/C/YHAIChatConfiguration.swift
View file @
cee6ad4e
...
@@ -27,14 +27,15 @@ class YHAIChatConfiguration {
...
@@ -27,14 +27,15 @@ class YHAIChatConfiguration {
func
handleReceiveMessage
(
_
res
:
YHAIChatMessage
?,
_
done
:
Bool
,
_
messages
:
inout
[
YHAIChatMessage
])
{
func
handleReceiveMessage
(
_
res
:
YHAIChatMessage
?,
_
done
:
Bool
,
_
messages
:
inout
[
YHAIChatMessage
])
{
// 去除loading消息
removeThinkingMessageFromChatList
(
&
messages
)
if
disableHandleMessage
{
if
disableHandleMessage
{
for
msg
in
messages
{
for
msg
in
messages
{
msg
.
isDone
=
true
msg
.
isDone
=
true
}
}
return
return
}
}
// 去除loading消息
removeThinkingMessageFromChatList
(
&
messages
)
if
let
res
=
res
{
if
let
res
=
res
{
var
find
=
false
var
find
=
false
...
@@ -57,11 +58,11 @@ class YHAIChatConfiguration {
...
@@ -57,11 +58,11 @@ class YHAIChatConfiguration {
if
!
find
{
if
!
find
{
messages
.
append
(
res
)
messages
.
append
(
res
)
}
}
}
if
done
{
// 思考完成
for
msg
in
messages
{
if
done
{
// 思考完成
msg
.
isDone
=
true
for
msg
in
messages
{
}
msg
.
isDone
=
true
}
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/C/YHAIServiceListViewController.swift
View file @
cee6ad4e
...
@@ -166,12 +166,12 @@ extension YHAIServiceListViewController: UICollectionViewDelegate, UICollectionV
...
@@ -166,12 +166,12 @@ extension YHAIServiceListViewController: UICollectionViewDelegate, UICollectionV
}
else
if
model
.
redirectMode
==
3
{
// agent
}
else
if
model
.
redirectMode
==
3
{
// agent
self
.
manager
.
getSubRobotChatConversationId
(
robotId
:
model
.
botId
)
{
self
.
manager
.
getSubRobotChatConversationId
(
robotId
:
model
.
redirectPath
)
{
sesseionId
in
sesseionId
in
let
vc
=
YHAIRobotChatViewController
()
let
vc
=
YHAIRobotChatViewController
()
vc
.
isNeedShowBannerHeader
=
model
.
isNeedShowBannerHeader
()
vc
.
isNeedShowBannerHeader
=
model
.
isNeedShowBannerHeader
()
vc
.
myTitle
=
model
.
title
vc
.
myTitle
=
model
.
title
vc
.
robotId
=
model
.
botId
vc
.
robotId
=
model
.
redirectPath
vc
.
conversationId
=
sesseionId
vc
.
conversationId
=
sesseionId
vc
.
robotType
=
model
.
botType
vc
.
robotType
=
model
.
botType
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
...
...
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/M/YHAIListModel.swift
View file @
cee6ad4e
...
@@ -34,7 +34,6 @@ class YHEntranceconfigModel: SmartCodable {
...
@@ -34,7 +34,6 @@ class YHEntranceconfigModel: SmartCodable {
var
description
:
String
=
""
var
description
:
String
=
""
var
btnText
:
String
=
""
var
btnText
:
String
=
""
var
redirectMode
:
Int
=
0
var
redirectMode
:
Int
=
0
var
botId
:
String
=
""
var
botType
:
Int
=
0
// 1:房产 2:教育 3:销售
var
botType
:
Int
=
0
// 1:房产 2:教育 3:销售
var
redirectPath
:
String
=
""
var
redirectPath
:
String
=
""
...
...
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