hub_requests
最后更新
hubai_sdk.utils.hub_requests类
Request
方法
delete
Python
1def delete(service: HubService, endpoint: str = '', **kwargs) -> Any:get
Python
1def get(service: HubService, endpoint: str = '', **kwargs) -> Any:headers
Python
1def headers() -> dict[str, str]:dict[str, str]: 包含持有者令牌和 JSON 接受头的请求头。
ValueError: 如果 HUBAI_API_KEY 未配置。
patch
Python
1def patch(service: HubService, endpoint: str = '', **kwargs) -> Any:post
Python
1def post(service: HubService, endpoint: str = '', **kwargs) -> Any:put
Python
1def put(service: HubService, endpoint: str = '', **kwargs) -> Any:url
Python
1def url(service: HubService) -> str: