Skip to content

Commit e237371

Browse files
committed
Add Writecream, X0GPT, and Zenmux providers with chat completion functionality
- Implemented Writecream provider with support for chat completions, including streaming and non-streaming responses. - Added X0GPT provider with a comprehensive chat completion system, handling both streaming and non-streaming requests. - Developed Zenmux provider, integrating chat completion capabilities and handling tool calls. - Each provider includes error handling, token counting, and response formatting to ensure compatibility with existing interfaces. Signed-off-by: OEvortex <[email protected]>
1 parent 8519523 commit e237371

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+6289
-976
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: Deploy Documentation to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- new-providers
8+
paths:
9+
- 'docs/**'
10+
- 'mkdocs.yml'
11+
- '.github/workflows/deploy-docs.yml'
12+
pull_request:
13+
branches:
14+
- main
15+
paths:
16+
- 'docs/**'
17+
- 'mkdocs.yml'
18+
workflow_dispatch:
19+
20+
permissions:
21+
contents: read
22+
pages: write
23+
id-token: write
24+
25+
concurrency:
26+
group: "pages"
27+
cancel-in-progress: false
28+
29+
jobs:
30+
build:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout repository
34+
uses: actions/checkout@v4
35+
with:
36+
fetch-depth: 0
37+
38+
- name: Set up Python
39+
uses: actions/setup-python@v4
40+
with:
41+
python-version: '3.11'
42+
cache: 'pip'
43+
44+
- name: Install dependencies
45+
run: |
46+
python -m pip install --upgrade pip
47+
pip install mkdocs mkdocs-material pymdown-extensions
48+
49+
- name: Build documentation
50+
run: mkdocs build
51+
52+
- name: Upload artifact
53+
uses: actions/upload-pages-artifact@v2
54+
with:
55+
path: 'site'
56+
57+
deploy:
58+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
59+
needs: build
60+
environment:
61+
name: github-pages
62+
url: ${{ steps.deployment.outputs.page_url }}
63+
runs-on: ubuntu-latest
64+
steps:
65+
- name: Deploy to GitHub Pages
66+
id: deployment
67+
uses: actions/deploy-pages@v2
68+
69+
test-pr:
70+
if: github.event_name == 'pull_request'
71+
runs-on: ubuntu-latest
72+
steps:
73+
- name: Checkout repository
74+
uses: actions/checkout@v4
75+
76+
- name: Set up Python
77+
uses: actions/setup-python@v4
78+
with:
79+
python-version: '3.11'
80+
cache: 'pip'
81+
82+
- name: Install dependencies
83+
run: |
84+
python -m pip install --upgrade pip
85+
pip install mkdocs mkdocs-material pymdown-extensions
86+
87+
- name: Build documentation (test)
88+
run: mkdocs build
89+
90+
- name: Check for build errors
91+
run: |
92+
if [ ! -d "site" ]; then
93+
echo "❌ Documentation build failed!"
94+
exit 1
95+
fi
96+
echo "✅ Documentation built successfully!"

Provider.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ provider = Groq()
230230
response = provider.chat("Hello, how are you?")
231231

232232
# OpenAI-Compatible Provider
233-
from webscout.Provider.OPENAI import groq
233+
from webscout.Provider.Openai_comp import groq
234234
client = groq.GroqProvider()
235235
response = client.chat.completions.create(
236236
model="mixtral-8x7b",

changelog.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## [2026.01.23] - 2026-01-23
5+
## [2026.01.24] - 2026-01-24
6+
7+
### Renamed
8+
- **rename**: webscout/Provider/OPENAI → webscout/Provider/Openai_comp - Renamed OPENAI directory to Openai_comp for better clarity and consistency with naming conventions.
69

710
### 🚮 Removed
811
- **move**: webscout/Provider/AISEARCH/brave_search.py → webscout/Provider/UNFINISHED/brave_search.py - Moved BraveAI provider to UNFINISHED folder. The Brave Search AI Chat API (/api/tap/v1/new endpoint) currently returns 404 errors despite correct reverse-engineering and parameter handling. Requires further investigation into API authentication or endpoint changes.

docs/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
55
Welcome to the central entry point for everything you need to know about Webscout. This hub is organized around the actual modules that live inside the repository so you can quickly jump from high-level concepts to concrete implementation details.
66

7+
## 📚 **[Complete Documentation Index →](DOCUMENTATION_INDEX.md)**
8+
*Navigate all docs, find learning paths, search by use case, and get started quickly!*
9+
10+
---
11+
712
## 🔗 Quick Navigation
813

914
| Topic | Why it matters | Primary Reference |

0 commit comments

Comments
 (0)