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
c02db932
Commit
c02db932
authored
May 09, 2024
by
Bruce MacDonald
Browse files
omit empty done reason
parent
ffa4d513
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
api/types.go
api/types.go
+2
-2
No files found.
api/types.go
View file @
c02db932
...
...
@@ -117,7 +117,7 @@ type ChatResponse struct {
Model
string
`json:"model"`
CreatedAt
time
.
Time
`json:"created_at"`
Message
Message
`json:"message"`
DoneReason
string
`json:"done_reason"`
DoneReason
string
`json:"done_reason
,omitempty
"`
Done
bool
`json:"done"`
...
...
@@ -311,7 +311,7 @@ type GenerateResponse struct {
Done
bool
`json:"done"`
// DoneReason is the reason the model stopped generating text.
DoneReason
string
`json:"done_reason"`
DoneReason
string
`json:"done_reason
,omitempty
"`
// Context is an encoding of the conversation used in this response; this
// can be sent in the next request to keep a conversational memory.
...
...
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