perf: minor perf

This commit is contained in:
Junyan Qin
2025-04-09 21:35:59 +08:00
parent 5347094466
commit 2e1fb21ff9
2 changed files with 1 additions and 3 deletions

View File

@@ -28,8 +28,6 @@ class PluginOperator(operator.CommandOperator):
plugin.plugin_description,
plugin.plugin_version, plugin.plugin_author)
# TODO 从元数据调远程地址
idx += 1
yield entities.CommandReturn(text=reply_str)

View File

@@ -67,7 +67,7 @@ class OpenAIChatCompletions(requester.LLMAPIRequester):
req_messages: list[dict],
use_model: requester.RuntimeLLMModel,
use_funcs: list[tools_entities.LLMFunction] = None,
extra_args: dict[str, typing.Any] = {}, # TODO: 所有的args都改为从此参数读取
extra_args: dict[str, typing.Any] = {},
) -> llm_entities.Message:
self.client.api_key = use_model.token_mgr.get_token()