Unverified Commit 875dfbbf authored by takatost's avatar takatost Committed by GitHub

fix: openllm completion start with prompt, remove it (#1303)

parent 9e7efa45
......@@ -66,6 +66,7 @@ class OpenLLM(LLM):
json_response = response.json()
completion = json_response["responses"][0]
completion = completion.lstrip(prompt)
if stop is not None:
completion = enforce_stop_tokens(completion, stop)
......
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