Commit Graph

59 Commits

Author SHA1 Message Date
H Lohaus
86e36efe6b Add Path and PathLike support when uploading images (#2514)
* Add Path and PathLike support when uploading images
Improve raise_for_status in special cases
Move ImageResponse to providers.response module
Improve OpenaiChat and OpenaiAccount providers
Add Sources for web_search in OpenaiChat
Add JsonConversation for import and export conversations to js
Add RequestLogin response type
Add TitleGeneration support in OpenaiChat and gui
* Improve Docker Container Guide in README.md
* Add tool calls api support, add search tool support
2024-12-28 16:50:08 +01:00
Heiner Lohaus
af677717ee Fix issue with get_cookies from nodriver in OpenaiChat 2024-12-18 02:28:26 +01:00
H Lohaus
bbb858249b Improve gradient in gui, show only models with enabled providers (#2492)
- **Cloudflare Provider**: Added error handling for missing requirements when fetching arguments.
- **Copilot Provider**: Updated the prompt formatting to use a maximum length function, improving message handling.
- **PollinationsAI Provider**: Adjusted the prompt length to a maximum of 5000 characters.
- **GitHub Copilot Provider**: Updated to use `ClientSession` for better session management.
- **CSS Updates**: Enhanced the gradient styling in the GUI for a more visually appealing interface.
- **JavaScript Updates**: Added functionality to toggle search options in the chat interface.
2024-12-17 21:17:40 +01:00
Heiner Lohaus
3b7b79f5ba Fix show html in gui 2024-12-15 12:23:04 +01:00
Heiner Lohaus
315a2f2595 Add streaming and system messages support in Airforce 2024-12-14 23:34:13 +01:00
H Lohaus
a591c5d409 Add Clarity Token to Copilot, (#2482)
* Add Clarity Token to Copilot,
Ignore disabled providers in gui,
Read cookie files after upload
* Add more chat templates to HuggingFace
2024-12-14 19:56:36 +01:00
H Lohaus
335c971f6a Add multiple images support (#2478)
* Add multiple images support

* Add multiple images support in gui

* Support multiple images in legacy client and in the api
Fix some model names in provider model list

* Fix unittests

* Add vision and providers docs
2024-12-13 22:20:58 +01:00
Heiner Lohaus
1bfb36176c Add more flux dev image providers 2024-12-08 04:13:09 +01:00
Heiner Lohaus
eff97ed344 Show only enabled models in gui 2024-12-07 22:50:28 +01:00
Heiner Lohaus
6a624acf55 Use custom user data dir for each provider
Reuse cookies and access token in Copilot
Send in the gui messages to multiple providers at once
Add GUI documenation
2024-12-07 19:38:04 +01:00
Heiner Lohaus
78c20c08a0 Improve image generation in OpenaiChat and Gemini 2024-12-06 21:54:13 +01:00
Heiner Lohaus
651df0cf82 Add some arguments to chat completion api, update discord links 2024-11-27 14:44:24 +01:00
H Lohaus
804a80bc7c Arm2 (#2414)
* Fix arm v7 build / improve api

* Update stubs.py

* Fix unit tests
2024-11-24 17:43:45 +01:00
H Lohaus
e8bd24a25b Add speech synthesize from Gemini (#2404)
* Improve slim docker image example, clean up OpenaiChat provider

* Enhance event loop management for asynchronous generators

* Fix attribute " shutdown_default_executor" not found in old python versions

* asyncio file created with all async helpers

* Add speech synthesize from Gemini. You can use it without a account
2024-11-22 01:50:48 +01:00
H Lohaus
eae317a166 Support synthesize in Openai generator (#2394)
* Improve download of generated images, serve images in the api

* Add support for conversation handling in the api

* Add orginal prompt to image response

* Add download images option in gui, fix loading model list in Airforce

* Support speech synthesize in Openai generator
2024-11-21 05:00:08 +01:00
H Lohaus
ffb4b0d162 Improve download of generated images, serve images in the api (#2391)
* Improve download of generated images, serve images in the api
Add support for conversation handling in the api

* Add orginal prompt to image response

* Add download images option in gui, fix loading model list in Airforce

* Add download images option in gui, fix loading model list in Airforce
2024-11-20 19:58:16 +01:00
H Lohaus
c959d9b469 Update api.py 2024-11-20 10:12:54 +01:00
Heiner Lohaus
58fa409eef Add Cerebras and HuggingFace2 provider, Fix RubiksAI provider
Add support for image generation in Copilot provider
2024-11-20 02:34:47 +01:00
Heiner Lohaus
6e674ca33d Add aliases to gui arguments, fix logs variable 2024-11-19 17:25:40 +01:00
Heiner Lohaus
8f3fbee0d8 Add show log option to gui 2024-11-19 15:26:03 +01:00
Heiner Lohaus
f1ef23285a Fix load model list i AirforceChat provider
Add Microsoft Copilot provider
Show image support in the model list of the gui
2024-11-18 15:41:45 +01:00
Heiner Lohaus
ea1448001d Add nodriver to Gemini provider,
Add slim docker image with google-chrome usage,
Add the new docker images to publish worklow,
Update requirements.txt and pip requirements
2024-11-17 11:06:37 +01:00
foxfire52
f38428ab23 Improve logging implementation (#2347) 2024-11-15 07:38:51 +01:00
kqlio67
0aad039ac8 Update (g4f/gui/server/api.py) 2024-10-29 10:11:56 +02:00
kqlio67
482e7d8946 Update (g4f/gui/server/api.py g4f/Provider/Blackbox.py) 2024-10-29 10:07:27 +02:00
kqlio67
307c2e64bd feat(g4f/gui/server/api.py): enhance image handling and directory management 2024-10-25 20:03:21 +03:00
kqlio67
c2e3107cb8 feat(g4f/gui/server/api.py): improve image handling and response streaming 2024-10-22 12:16:27 +03:00
kqlio67
fda90aa8f5 refactor(g4f/gui/server/api.py): streamline model retrieval logic 2024-10-19 12:56:43 +03:00
kqlio67
3e8dcaf13c Updated(g4f/gui/server/api.py) 2024-10-15 12:28:03 +03:00
kqlio67
d3d3bc9c14 style(g4f/gui/server/api.py): update inline comments for URL processing 2024-10-11 22:28:17 +03:00
kqlio67
55e55d77a2 Updated g4f/gui/server/api.py 2024-09-04 22:31:00 +03:00
kqlio67
7f05d15855 feat(image-processing): add support for data URI image handlin 2024-09-04 20:56:07 +03:00
Heiner Lohaus
80b2e9b807 Add some options to messages in gui, saves generated images local 2024-05-20 01:28:08 +02:00
Heiner Lohaus
6e064adb09 Add gemini-1.5-pro-latest model 2024-04-22 18:08:04 +02:00
Heiner Lohaus
4bc4d635bc Add vision models to readme 2024-04-22 01:27:48 +02:00
Heiner Lohaus
a26421bcd8 Add image model list 2024-04-21 15:15:55 +02:00
Heiner Lohaus
db2d6cffd9 Fix Bing Provider, Add Account Support for Meta AI
Use default headers in OpenaiChat
2024-04-21 07:22:59 +02:00
Heiner Lohaus
932d3a3ca0 Add MetaAI Provider and some small improvments 2024-04-20 10:43:53 +02:00
Heiner Lohaus
a2b5446b2e Fix DuckDuckGo Provider issues
Fix PerplexityLabs, FlowGpt Provider
Update Bing, Gemini Provider
2024-04-17 10:33:23 +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
Heiner Lohaus
926ddfd543 Add WhiteRabbitNeo Provider, Many tiny improvments in the gui 2024-04-08 07:24:00 +02:00
Heiner Lohaus
b35dfcd1b0 Add local models to gui, Fix You Provider, add AsyncClient 2024-04-07 10:36:13 +02:00
H Lohaus
a9f16aea69 Update api.py 2024-04-06 17:22:11 +02:00
H Lohaus
27fed7224d Update api.py 2024-04-06 17:05:10 +02:00
H Lohaus
0a721eaf0f Update api.py 2024-04-06 17:02:54 +02:00
H Lohaus
da8cb8bdf1 Update api.py 2024-04-06 12:03:32 +02:00
Heiner Lohaus
0de9ca2004 Add Installation Guide for Windows
Improve Contributors list in Readme
2024-04-06 10:47:43 +02:00
H Lohaus
e2c11d233a Aktualisieren von api.py 2024-04-05 14:20:28 +02:00
Heiner Lohaus
03fd5ac99a Fix history support for OpenaiChat 2024-03-28 11:36:25 +01:00