Skip to content

Commit

Permalink
Add Timeout for LLM Microservice (opea-project#91)
Browse files Browse the repository at this point in the history
Signed-off-by: letonghan <[email protected]>
  • Loading branch information
letonghan authored May 24, 2024
1 parent d246c0e commit ecb8c79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions comps/llms/text-generation/tgi/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def llm_generate(input: LLMParamsDoc):
temperature=input.temperature,
repetition_penalty=input.repetition_penalty,
streaming=input.streaming,
timeout=600,
)

if input.streaming:
Expand Down

0 comments on commit ecb8c79

Please sign in to comment.