mirror of
https://github.com/ollama/ollama.git
synced 2025-04-11 05:09:45 +02:00
server: loosen json format constraints
This commit is contained in:
parent
89d5e2f2fd
commit
fc3c398ca2
@ -734,7 +734,7 @@ func (s *llmServer) Completion(ctx context.Context, req CompletionRequest, fn fu
|
||||
}
|
||||
request["grammar"] = string(g)
|
||||
default:
|
||||
return errors.New(`invalid format: expected "json" or a JSON schema`)
|
||||
slog.Warn("invalid format: expected \"json\" or a JSON schema")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user