Commit graph

13 commits

Author SHA1 Message Date
hlohaus
e1e34eccb3 Enhance Cohere and OpenRouter providers with API key handling and model management improvements 2025-09-05 18:17:48 +02:00
hlohaus
7c5ec5325a Update EasyChat and OpenRouter classes, modify backend API timing, and enhance website rendering 2025-09-04 02:42:04 +02:00
hlohaus
567fec8650 feat: update OpenRouter defaults and Together activation state
- In `g4f/Provider/needs_auth/OpenRouter.py`, removed import of `DEFAULT_MODEL`
- Changed `default_model` in `OpenRouter` from `DEFAULT_MODEL` to string `"openrouter/auto"`
- In `OpenRouterFree.get_models`, expanded filter condition to include models ending with `"/auto"` in addition to those ending with `":free"`
- In `g4f/Provider/needs_auth/Together.py`, changed `active_by_default` in `Together` class from `True` to `False
2025-08-21 19:06:47 +02:00
hlohaus
a801a7bef9 Enable OpenRouter 2025-08-10 06:31:58 +02:00
hlohaus
f12649c1d3 Add OpenRouterFree provider 2025-08-10 05:07:55 +02:00
hlohaus
a62a1b6e71 Update models list 2025-08-06 20:54:32 +02:00
hlohaus
e7a1bcdf54 fix: improve message formatting and set default activation for providers
- In PerplexityLabs.py, added logic to filter consecutive assistant messages and update message array accordingly
- Modified PerplexityLabs.py to change "messages" field to use the new formatted message list
- Adjusted error handling in PerplexityLabs.py to include a newline in error messages
- Import os in BlackForestLabs_Flux1KontextDev.py and replace media filename assignment with basename if media is None
- In Groq.py, set "active_by_default" to True for the provider
- In OpenRouter.py, added "active_by_default" as True
- In Together.py, set "active_by_default" to True
- In HuggingFaceInference.py, set "working" to False
- In models.py, changed default_model to "openai/gpt-oss-120b" instead of previous value
- In backend_api.py, added a null check in jsonify_provider_models to return 404 if response is None, and simplified get_provider_models call
2025-08-06 04:46:28 +02:00
hlohaus
93f055d9ae feat: add FreeRouter and OpenRouter providers with Gemini model updates
- Add new FreeRouter provider (based on OpenaiTemplate)
- Add new OpenRouter provider (needs auth) to access OpenRouter.ai service
- Update CablyAI provider imports to use Messages and AsyncResult
- Add support for new Gemini models including gemini-2.5-pro-exp, gemini-2.0-flash-thinking-exp, and gemini-deep-research
- Add processing for <think> tags in Gemini provider output by replacing <ctrl94>thought and <ctrl95> markers
- Update provider imports in __init__.py files to include the new providers
- Mark FreeRouter as not working initially
2025-04-08 22:57:52 +02:00
kqlio67
e98793d0a7 Update (g4f/models.py g4f/Provider/ docs/providers-and-models.md) 2024-11-06 17:25:09 +02:00
kqlio67
f8e403a745 Resolved merge conflicts 2024-09-24 13:23:53 +03:00
Heiner Lohaus
7e543f4747 Add Ecosia Provider, Add OpenaiAccount alias
Use AsyncClient in API, add web_search parameter in API
Improve error messages in Openai
2024-04-18 20:18:51 +02:00
Heiner Lohaus
f724c07f1b Add labels to provider list 2024-04-12 20:58:40 +02:00
H Lohaus
00951eb791
Add OpenRouter and DeepInfraImage Provider (#1814) 2024-04-10 08:14:50 +02:00