refactor(model_manager): update parameter type for flexibility

- Changed 'prompt_messages' parameter from list to Sequence for broader input type compatibility.
This commit is contained in:
-LAN- 2024-11-14 14:57:03 +08:00
parent abad35f700
commit ddc86503dc

View File

@ -100,7 +100,7 @@ class ModelInstance:
def invoke_llm(
self,
prompt_messages: list[PromptMessage],
prompt_messages: Sequence[PromptMessage],
model_parameters: Optional[dict] = None,
tools: Sequence[PromptMessageTool] | None = None,
stop: Optional[Sequence[str]] = None,