You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear, Ollama have cotext setting, would add this option to llm.ollama.option?
such as below:
Conventions
....
context: the context parameter returned from a previous request to /generate, this can be used to keep a short conversational memory
.... https://github.com/ollama/ollama/blob/main/docs/api.md
'''
func WithContext(ctx []int) Option {
return func(opts *options) {
opts.ollamaOptions.context = ctx
}
}
'''
so we no need to build up memory outside the ollama api.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Dear, Ollama have cotext setting, would add this option to llm.ollama.option?
such as below:
Conventions
....
context: the context parameter returned from a previous request to /generate, this can be used to keep a short conversational memory
....
https://github.com/ollama/ollama/blob/main/docs/api.md
'''
func WithContext(ctx []int) Option {
return func(opts *options) {
opts.ollamaOptions.context = ctx
}
}
'''
so we no need to build up memory outside the ollama api.
thanks!
Beta Was this translation helpful? Give feedback.
All reactions