fix: openllm completion start with prompt, remove it (#1303)
This commit is contained in:
parent
9e7efa45d4
commit
875dfbbf0e
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue