Skip to content

Conversation

@OEvortex
Copy link
Owner

This change adds timeout and proxies parameters to the create method of various OpenAI-compatible providers and BaseCompletions.

  • I modified webscout/Provider/OPENAI/base.py to update the BaseCompletions.create signature.
  • For the following providers in webscout/Provider/OPENAI/:
    • chatgpt.py
    • BLACKBOXAI.py
    • Cloudflare.py
    • FreeGemini.py
    • NEMOTRON.py
    • Qwen3.py
    • TwoAI.py
    • ai4chat.py
    • c4ai.py
    • chatgptclone.py
    • chatsandbox.py
    • copilot.py The changes include:
    • Adding timeout and proxies to Completions.create and internal request methods.
    • Updating HTTP calls to use these new parameters.
    • Removing timeout and proxies from provider __init__ methods, setting defaults instead.

This is part of a larger effort to standardize timeout and proxy handling across all providers. Further work is needed for remaining providers.

This change adds `timeout` and `proxies` parameters to the `create` method of various OpenAI-compatible providers and `BaseCompletions`.

- I modified `webscout/Provider/OPENAI/base.py` to update the `BaseCompletions.create` signature.
- For the following providers in `webscout/Provider/OPENAI/`:
    - `chatgpt.py`
    - `BLACKBOXAI.py`
    - `Cloudflare.py`
    - `FreeGemini.py`
    - `NEMOTRON.py`
    - `Qwen3.py`
    - `TwoAI.py`
    - `ai4chat.py`
    - `c4ai.py`
    - `chatgptclone.py`
    - `chatsandbox.py`
    - `copilot.py`
  The changes include:
    - Adding `timeout` and `proxies` to `Completions.create` and internal request methods.
    - Updating HTTP calls to use these new parameters.
    - Removing `timeout` and `proxies` from provider `__init__` methods, setting defaults instead.

This is part of a larger effort to standardize timeout and proxy handling across all providers. Further work is needed for remaining providers.
@OEvortex OEvortex merged commit f56ace5 into main May 27, 2025
2 of 3 checks passed
@OEvortex OEvortex deleted the feature/add-timeout-proxies branch December 1, 2025 14:56
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

Successfully merging this pull request may close these issues.

2 participants