Skip to content

Commit

Permalink
[Fix] Fix gen_kwargs in lagent_agent (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanqiNO1 authored Apr 12, 2024
1 parent c90f5da commit 7769e0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webui/modules/agents/lagent_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def stream_completions(self, model: str, prompt: Union[str, List[Any]], **kwargs
'suffix': None,
'temperature': 0.7,
'n': 1,
'max_tokens': 16,
'max_tokens': 1024,
'stop': None,
'top_p': 1.0,
'top_k': 40,
Expand All @@ -78,6 +78,7 @@ def stream_completions(self, model: str, prompt: Union[str, List[Any]], **kwargs
'session_id': -1,
'ignore_eos': False,
'stream': True,
'skip_special_tokens': False,
**kwargs,
}
headers = {'content-type': 'application/json'}
Expand Down

0 comments on commit 7769e0d

Please sign in to comment.