Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught ValueError #46

Open
ShikangPang opened this issue Oct 9, 2024 · 1 comment
Open

Uncaught ValueError #46

ShikangPang opened this issue Oct 9, 2024 · 1 comment

Comments

@ShikangPang
Copy link

ray.exceptions.RayTaskError(ValueError): ray::UDFWorker.build_model() (pid=2734747, ip=10.224.197.108, actor_id=a6bd0f39b7099c757a2caac81d000000, repr=<pyjava.udf.udf_worker.UDFWorker object at 0x75c2b8d592a0>)
  File "/home/pang/miniforge3/envs/auto-coder/lib/python3.10/concurrent/futures/_base.py", line 451, in result
    return self.__get_result()
  File "/home/pang/miniforge3/envs/auto-coder/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
    raise self._exception
  File "/home/pang/miniforge3/envs/auto-coder/lib/python3.10/site-packages/pyjava/udf/udf_worker.py", line 39, in build_model
    self.model = self.init_func(self.model_refs, self.conf)
  File "/home/pang/miniforge3/envs/auto-coder/lib/python3.10/site-packages/byzerllm/utils/client/byzerllm_client.py", line 589, in init_model
    infer = infer_module.CustomSaasAPI(infer_params)
  File "/home/pang/miniforge3/envs/auto-coder/lib/python3.10/site-packages/byzerllm/saas/official_openai/__init__.py", line 64, in __init__
    self.client = OpenAI(**other_params, api_key=self.api_key)
  File "/home/pang/miniforge3/envs/auto-coder/lib/python3.10/site-packages/openai/_client.py", line 123, in __init__
    super().__init__(
  File "/home/pang/miniforge3/envs/auto-coder/lib/python3.10/site-packages/openai/_base_client.py", line 856, in __init__
    self._client = http_client or SyncHttpxClientWrapper(
  File "/home/pang/miniforge3/envs/auto-coder/lib/python3.10/site-packages/openai/_base_client.py", line 754, in __init__
    super().__init__(**kwargs)
  File "/home/pang/miniforge3/envs/auto-coder/lib/python3.10/site-packages/httpx/_client.py", line 693, in __init__
    proxy_map = self._get_proxy_map(proxies or proxy, allow_env_proxies)
  File "/home/pang/miniforge3/envs/auto-coder/lib/python3.10/site-packages/httpx/_client.py", line 218, in _get_proxy_map
    return {
  File "/home/pang/miniforge3/envs/auto-coder/lib/python3.10/site-packages/httpx/_client.py", line 219, in <dictcomp>
    key: None if url is None else Proxy(url=url)
  File "/home/pang/miniforge3/envs/auto-coder/lib/python3.10/site-packages/httpx/_config.py", line 338, in __init__
    raise ValueError(f"Unknown scheme for proxy URL {url!r}")
ValueError: Unknown scheme for proxy URL URL('socks://127.0.0.1:7897/')
@allwefantasy
Copy link
Owner

saas.base_url 参数不支持类似这样的 socks://127.0.0.1:7897 需要类似http://xxxx:xxxx/v1 这样的地址

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants