mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-07 18:06:52 +08:00
fix: openllm completion start with prompt, remove it (#1303)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user