Skip to content

Commit c11e6af

Browse files
committed
wip
1 parent a677559 commit c11e6af

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

modelscope_agent/cli/search.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ generation_config:
88
top_p: 0.8
99
temperature: 0.5
1010
top_k: 50
11+
stream: true
1112
extra_body:
1213
enable_thinking: false
1314

modelscope_agent/llm/openai_llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self, config: DictConfig, base_url: Optional[str] = None, api_key:
2424
api_key=api_key,
2525
base_url=base_url,
2626
)
27-
self.args: Dict = {k: v for k, v in getattr(config.llm, 'generation_config', {}).items()}
27+
self.args: Dict = {k: v for k, v in getattr(config, 'generation_config', {}).items()}
2828

2929
@retry(max_attempts=3)
3030
def generate(self, messages: List[Message], tools: List[Tool] = None, **kwargs) -> Message | Generator[Message, None, None]:

0 commit comments

Comments
 (0)