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
46e6327e
Unverified
Commit
46e6327e
authored
Jul 29, 2024
by
Jeffrey Morgan
Committed by
GitHub
Jul 29, 2024
Browse files
api: add stringifier for `Tool` (#5891)
parent
68ee42f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
api/types.go
api/types.go
+5
-0
No files found.
api/types.go
View file @
46e6327e
...
@@ -114,6 +114,11 @@ func (t Tools) String() string {
...
@@ -114,6 +114,11 @@ func (t Tools) String() string {
return
string
(
bts
)
return
string
(
bts
)
}
}
func
(
t
Tool
)
String
()
string
{
bts
,
_
:=
json
.
Marshal
(
t
)
return
string
(
bts
)
}
// Message is a single message in a chat sequence. The message contains the
// Message is a single message in a chat sequence. The message contains the
// role ("system", "user", or "assistant"), the content and an optional list
// role ("system", "user", or "assistant"), the content and an optional list
// of images.
// of images.
...
...
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