This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
OpenSource
/
dify
Watch
4
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
152
Wiki
Activity
Browse Source
fix: openllm generate cutoff (
#945
)
tags/0.3.15
takatost
2 years ago
parent
e8039a7da8
commit
866ee5da91
No account linked to committer's email address
1 changed files
with
0 additions
and
3 deletions
Split View
Show Diff Stats
0
3
api/core/third_party/langchain/llms/openllm.py
+ 0
- 3
api/core/third_party/langchain/llms/openllm.py
View File
@@ -67,9 +67,6 @@ class OpenLLM(LLM):
json_response = response.json()
completion = json_response["responses"][0]
if completion:
completion = completion[len(prompt):]
if stop is not None:
completion = enforce_stop_tokens(completion, stop)
Write
Preview
Loading…
Cancel
Save