Download src/core/__init__.py from webhook/codex: direct link, hf CLI and curl.
- Browser
- Download file 724 Bytes
-
https://huggingface.co/spaces/webhook/codex/resolve/main/src/core/__init__.py
- Command line
-
hf download hf://spaces/webhook/codex/src/core/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/webhook/codex/resolve/main/src/core/__init__.py
724 Bytes
| """ | |
| 核心功能模块 | |
| """ | |
| from .openai.oauth import OAuthManager, OAuthStart, generate_oauth_url, submit_callback_url | |
| from .http_client import ( | |
| OpenAIHTTPClient, | |
| HTTPClient, | |
| HTTPClientError, | |
| RequestConfig, | |
| create_http_client, | |
| create_openai_client, | |
| ) | |
| from .register import RegistrationEngine, RegistrationResult | |
| from .utils import setup_logging, get_data_dir | |
| __all__ = [ | |
| 'OAuthManager', | |
| 'OAuthStart', | |
| 'generate_oauth_url', | |
| 'submit_callback_url', | |
| 'OpenAIHTTPClient', | |
| 'HTTPClient', | |
| 'HTTPClientError', | |
| 'RequestConfig', | |
| 'create_http_client', | |
| 'create_openai_client', | |
| 'RegistrationEngine', | |
| 'RegistrationResult', | |
| 'setup_logging', | |
| 'get_data_dir', | |
| ] | |