mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-08-28 05:25:04 +00:00
feat(llm): make model_name optional in simple_request methods
This commit is contained in:
parent
e47256269e
commit
5dfcda8575
1 changed files with 2 additions and 2 deletions
|
|
@ -461,7 +461,7 @@ class BaseLLM(ABC):
|
|||
async def simple_request(
|
||||
self,
|
||||
prompt: str,
|
||||
model_name: str,
|
||||
model_name: str | None = None,
|
||||
callback_fn: Callable[[Message], Any] | None = None,
|
||||
default_value: Any = None,
|
||||
**kwargs,
|
||||
|
|
@ -479,7 +479,7 @@ class BaseLLM(ABC):
|
|||
async def simple_request_for_json(
|
||||
self,
|
||||
prompt: str,
|
||||
model_name: str,
|
||||
model_name: str | None = None,
|
||||
**kwargs,
|
||||
) -> dict:
|
||||
"""Make a simple request using the LLM and extract JSON."""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue