Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cat-disruptor-6500
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stephen D
cat-disruptor-6500
Commits
bd5af9a6
Commit
bd5af9a6
authored
9 months ago
by
Stephen D
Browse files
Options
Downloads
Patches
Plain Diff
don't reply multiple times
parent
380eaac3
No related branches found
No related tags found
No related merge requests found
Pipeline
#5781
passed
9 months ago
Stage: test
Changes
1
Pipelines
8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/handlers/llama.rs
+8
-1
8 additions, 1 deletion
src/handlers/llama.rs
with
8 additions
and
1 deletion
src/handlers/llama.rs
+
8
−
1
View file @
bd5af9a6
...
...
@@ -118,8 +118,15 @@ impl LlamaHandler {
.map
(|
chunk
|
chunk
.collect
())
.collect
();
let
mut
first
=
true
;
for
chunk
in
chunks
{
let
res
=
msg
.reply
(
ctx
,
chunk
)
.await
;
let
res
=
if
first
{
msg
.reply
(
ctx
,
chunk
)
.await
}
else
{
msg
.channel_id
.send_message
(
ctx
,
|
m
|
m
.content
(
chunk
))
.await
};
first
=
false
;
match
res
{
Ok
(
x
)
=>
{
self
.contexts
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment