mirror of
https://github.com/trycua/computer.git
synced 2026-01-01 19:10:30 -06:00
rename api_url to api_base
This commit is contained in:
@@ -305,8 +305,8 @@ Examples:
|
||||
help="API key override for the model provider (passed to ComputerAgent)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--api-url",
|
||||
dest="api_url",
|
||||
"--api-base",
|
||||
dest="api_base",
|
||||
type=str,
|
||||
help="API base URL override for the model provider (passed to ComputerAgent)",
|
||||
)
|
||||
@@ -397,8 +397,8 @@ Examples:
|
||||
# Thread API credentials to agent if provided
|
||||
if args.api_key:
|
||||
agent_kwargs["api_key"] = args.api_key
|
||||
if args.api_url:
|
||||
agent_kwargs["api_url"] = args.api_url
|
||||
if args.api_base:
|
||||
agent_kwargs["api_base"] = args.api_base
|
||||
|
||||
if args.images > 0:
|
||||
agent_kwargs["only_n_most_recent_images"] = args.images
|
||||
|
||||
Reference in New Issue
Block a user