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
d48c1c5a
Unverified
Commit
d48c1c5a
authored
Nov 11, 2024
by
Evan
Committed by
GitHub
Nov 11, 2024
Browse files
api: fix typos in Go Doc comments (#7620)
parent
36a8372b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
api/types.go
api/types.go
+6
-6
No files found.
api/types.go
View file @
d48c1c5a
...
...
@@ -12,7 +12,7 @@ import (
"time"
)
// StatusError is an error with an
d
HTTP status code.
// StatusError is an error with an HTTP status code
and message
.
type
StatusError
struct
{
StatusCode
int
Status
string
...
...
@@ -57,7 +57,7 @@ type GenerateRequest struct {
Template
string
`json:"template"`
// Context is the context parameter returned from a previous call to
// Generate
call
. It can be used to keep a short conversational memory.
//
[Client.
Generate
]
. It can be used to keep a short conversational memory.
Context
[]
int
`json:"context,omitempty"`
// Stream specifies whether the response is streaming; it is true by default.
...
...
@@ -90,14 +90,14 @@ type ChatRequest struct {
// Messages is the messages of the chat - can be used to keep a chat memory.
Messages
[]
Message
`json:"messages"`
// Stream enable streaming of returned response; true by default.
// Stream enable
s
streaming of returned response
s
; true by default.
Stream
*
bool
`json:"stream,omitempty"`
// Format is the format to return the response in (e.g. "json").
Format
string
`json:"format"`
// KeepAlive controls how long the model will stay loaded into memory
// followin the request.
// followin
g
the request.
KeepAlive
*
Duration
`json:"keep_alive,omitempty"`
// Tools is an optional list of tools the model has access to.
...
...
@@ -203,8 +203,8 @@ type Metrics struct {
EvalDuration
time
.
Duration
`json:"eval_duration,omitempty"`
}
// Options specified in [GenerateRequest]
, i
f you add a new option here a
dd it
// to the API docs
also
.
// Options specified in [GenerateRequest]
. I
f you add a new option here
,
a
lso
//
add it
to the API docs.
type
Options
struct
{
Runner
...
...
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