mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-30 06:30:43 +00:00
Fix 'hang' on empty message from the start
Seems like that empty message marker trick was unnecessary
This commit is contained in:
parent
e459118de6
commit
f98775ef5c
2 changed files with 2 additions and 9 deletions
|
@ -118,7 +118,7 @@ func ModelInference(ctx context.Context, s string, messages []schema.Message, im
|
|||
|
||||
var partialRune []byte
|
||||
err := inferenceModel.PredictStream(ctx, opts, func(reply *proto.Reply) {
|
||||
msg := reply.GetMessage()
|
||||
msg := reply.Message
|
||||
partialRune = append(partialRune, msg...)
|
||||
|
||||
tokenUsage.Prompt = int(reply.PromptTokens)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue