mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-17 19:24:19 +00:00
perf: minor perf
This commit is contained in:
@@ -28,8 +28,6 @@ class PluginOperator(operator.CommandOperator):
|
|||||||
plugin.plugin_description,
|
plugin.plugin_description,
|
||||||
plugin.plugin_version, plugin.plugin_author)
|
plugin.plugin_version, plugin.plugin_author)
|
||||||
|
|
||||||
# TODO 从元数据调远程地址
|
|
||||||
|
|
||||||
idx += 1
|
idx += 1
|
||||||
|
|
||||||
yield entities.CommandReturn(text=reply_str)
|
yield entities.CommandReturn(text=reply_str)
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ class OpenAIChatCompletions(requester.LLMAPIRequester):
|
|||||||
req_messages: list[dict],
|
req_messages: list[dict],
|
||||||
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] = {}, # TODO: 所有的args都改为从此参数读取
|
extra_args: dict[str, typing.Any] = {},
|
||||||
) -> llm_entities.Message:
|
) -> llm_entities.Message:
|
||||||
self.client.api_key = use_model.token_mgr.get_token()
|
self.client.api_key = use_model.token_mgr.get_token()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user