fix: in the ollamachat.py func _closure add remove_think agr

This commit is contained in:
Dong_master
2025-08-14 22:35:30 +08:00
parent b8b9a37825
commit 8c87a47f5a

View File

@@ -44,6 +44,7 @@ class OllamaChatCompletions(requester.ProviderAPIRequester):
use_model: requester.RuntimeLLMModel, use_model: requester.RuntimeLLMModel,
use_funcs: list[tools_entities.LLMFunction] = None, use_funcs: list[tools_entities.LLMFunction] = None,
extra_args: dict[str, typing.Any] = {}, extra_args: dict[str, typing.Any] = {},
remove_think: bool = False,
) -> llm_entities.Message: ) -> llm_entities.Message:
args = extra_args.copy() args = extra_args.copy()
args['model'] = use_model.model_entity.name args['model'] = use_model.model_entity.name