"docs/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "d9ee3879b0ae5a6d1a4eff49fd5febaaa4a03a0a"
Commit ce6197a8 authored by Arne Müller's avatar Arne Müller
Browse files

removed redundant strings.CutPrefix from Decode

parent 46b9953f
...@@ -668,9 +668,6 @@ func (llm *llama) Decode(ctx context.Context, tokens []int) (string, error) { ...@@ -668,9 +668,6 @@ func (llm *llama) Decode(ctx context.Context, tokens []int) (string, error) {
return "", fmt.Errorf("unmarshal encode response: %w", err) return "", fmt.Errorf("unmarshal encode response: %w", err)
} }
// decoded content contains a leading whitespace
decoded.Content, _ = strings.CutPrefix(decoded.Content, "")
return decoded.Content, nil return decoded.Content, nil
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment