ollamarunner: Don't panic for unimplemented features at runtime.
It's ok to fail on startup but we shouldn't panic during runtime based on user input. Downgrade the panic to a warning.
This commit is contained in:
parent
4100ed7bdd
commit
4614fafae0
@ -436,10 +436,9 @@ func (s *Server) processBatch() error {
|
|||||||
// if done processing the prompt, generate an embedding and return
|
// if done processing the prompt, generate an embedding and return
|
||||||
if seq.embeddingOnly {
|
if seq.embeddingOnly {
|
||||||
// TODO(jessegross): Embedding support
|
// TODO(jessegross): Embedding support
|
||||||
// s.removeSequence(i, "")
|
slog.Warn("generation of embedding outputs not yet supported")
|
||||||
// continue
|
s.removeSequence(i, "")
|
||||||
|
continue
|
||||||
panic("generation of embedding outputs not yet supported")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// sample a token
|
// sample a token
|
||||||
|
Loading…
x
Reference in New Issue
Block a user