mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-11 00:07:07 +00:00
check request.Context for initial system prompt
This commit is contained in:
@@ -69,7 +69,7 @@ func (m *Model) Prompt(request api.GenerateRequest) (string, error) {
|
||||
|
||||
vars.Prompt = request.Prompt
|
||||
|
||||
if len(vars.Context) == 0 {
|
||||
if len(request.Context) == 0 {
|
||||
vars.System = m.System
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user