diff --git a/tests/cli/test_studio_update.py b/tests/cli/test_studio_update.py index 874f01e2f..14479e86b 100644 --- a/tests/cli/test_studio_update.py +++ b/tests/cli/test_studio_update.py @@ -1020,7 +1020,9 @@ def update_application_code_bundle(self, **kwargs: object) -> str: assert captured["offline_runtime"] is False assert captured["package_provider"] == "byteplus" assert captured["bundle_agentkit_cli"] is False - assert captured["package_requirements"] == "./veadk.whl\n./pydantic.whl\n" + assert captured["package_requirements"] == ( + "--extra-index-url https://pypi.org/simple\n./veadk.whl\n./pydantic.whl\n" + ) update = captured["update"] assert isinstance(update, dict) run_script = str(captured["run_script"]) diff --git a/veadk/cli/cli_frontend.py b/veadk/cli/cli_frontend.py index fe80291dc..e4c52a6bf 100644 --- a/veadk/cli/cli_frontend.py +++ b/veadk/cli/cli_frontend.py @@ -16483,6 +16483,10 @@ def frontend_update( provider=provider_id, offline_runtime=False, ) + if provider_id == "byteplus": + requirements = ( + "--extra-index-url https://pypi.org/simple\n" + requirements + ) except ValueError as error: raise click.ClickException(str(error)) from error try: