mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-25 19:37:36 +08:00
fix: in the ollamachat.py func _closure add remove_think agr
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user