Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
70b1010f
Unverified
Commit
70b1010f
authored
Jul 18, 2024
by
Jeffrey Morgan
Committed by
GitHub
Jul 18, 2024
Browse files
server: check for empty tools array too (#5779)
parent
84e5721f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
server/routes.go
server/routes.go
+1
-1
No files found.
server/routes.go
View file @
70b1010f
...
@@ -1290,7 +1290,7 @@ func (s *Server) ChatHandler(c *gin.Context) {
...
@@ -1290,7 +1290,7 @@ func (s *Server) ChatHandler(c *gin.Context) {
}
}
caps
:=
[]
Capability
{
CapabilityCompletion
}
caps
:=
[]
Capability
{
CapabilityCompletion
}
if
req
.
Tools
!=
nil
{
if
len
(
req
.
Tools
)
>
0
{
caps
=
append
(
caps
,
CapabilityTools
)
caps
=
append
(
caps
,
CapabilityTools
)
}
}
...
...
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