mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-08 04:05:20 +00:00
check request.Context
for initial system prompt
This commit is contained in:
parent
b9dc875401
commit
c50b01bc21
@ -69,7 +69,7 @@ func (m *Model) Prompt(request api.GenerateRequest) (string, error) {
|
|||||||
|
|
||||||
vars.Prompt = request.Prompt
|
vars.Prompt = request.Prompt
|
||||||
|
|
||||||
if len(vars.Context) == 0 {
|
if len(request.Context) == 0 {
|
||||||
vars.System = m.System
|
vars.System = m.System
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user