Commit Graph

263 Commits

Author SHA1 Message Date
Heiner Lohaus
74c399d675 Add conversation title change in gui
Fix bug with multiple requests a .har in OpenaiChat
2024-04-23 17:34:42 +02:00
Heiner Lohaus
cb695f58e8 Add nodriver to docker 2024-04-23 05:44:49 +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
3a23e81de9 Add Replicate Provider
Fix Bug in OpenaiChat and MetaAI
Add read cookie and .har files
Use factory for api app
2024-04-21 22:39:00 +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
kqlio67
81cf5d7c77
A few small fixes in GUI and Providers (#1861) 2024-04-19 14:10:56 +02:00
PD
5fd118f3c9
Added Meta llama-3 support! (#1856)
* Added Meta llama-3 support!
Decided to change llama2.py to llama.py to hold all the llama family models.

* updated HuggingChat provider

* Update FlowGpt.py
2024-04-19 09:27:33 +02: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
a82021fecd Add missing styling on phone 2024-04-17 12:07:04 +02:00
Heiner Lohaus
f72ea59a99 Fix style.css 2024-04-17 10:38:22 +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
307ccd8781 Fix SpeechRecognition on Phone 2024-04-13 21:47:22 +02:00
Heiner Lohaus
cec2a10eaa Fix SpeechRecognition on Phone 2024-04-13 21:41:40 +02:00
Heiner Lohaus
f323e8850a Fix SpeechRecognition on Phone 2024-04-13 21:35:57 +02:00
Heiner Lohaus
97d34592d5 Fix SpeechRecognition on Phone 2024-04-13 21:22:30 +02:00
Heiner Lohaus
070eeadc12 Fix SpeechRecognition on Phone 2024-04-13 21:15:31 +02:00
Heiner Lohaus
c15242faa0 Fix SpeechRecognition on Phone 2024-04-13 21:05:01 +02:00
Heiner Lohaus
7194c70d9c Fix SpeechRecognition on Phone 2024-04-13 21:04:32 +02:00
Heiner Lohaus
f724c07f1b Add labels to provider list 2024-04-12 20:58:40 +02:00
H Lohaus
0b712c2bde
Add unittests for async client (#1830)
* Add unittests for async client

* Add pollyfill for anext

* Update integration tests
2024-04-12 18:01:54 +02:00
H Lohaus
df6ce3a531
Update chat.v1.js 2024-04-11 04:26:30 +02:00
H Lohaus
5899543ecf
Update chat.v1.js 2024-04-11 04:16:31 +02:00
H Lohaus
eefbdb6d84
Update chat.v1.js 2024-04-11 04:06:52 +02:00
Heiner Lohaus
c1ca481074 Fix DeepInfra Provider, Fix Speech Recognition on Phone 2024-04-11 03:11:45 +02:00
Heiner Lohaus
009a67239a Add ReplicateImage Provider, Fix BingCreateImages Provider 2024-04-11 02:40:30 +02:00
Heiner Lohaus
13a09033fb Increase conversation title lenght 2024-04-10 15:44:51 +02:00
Heiner Lohaus
65bcc8ae8b Some small fixes 2024-04-10 14:23:30 +02:00
H Lohaus
00951eb791
Add OpenRouter and DeepInfraImage Provider (#1814) 2024-04-10 08:14:50 +02:00
Heiner Lohaus
aff3ec5be0 Improve styling mobile 2024-04-09 20:19:46 +02:00
Heiner Lohaus
90715e702b Add project files 2024-04-09 19:19:33 +02:00
Heiner Lohaus
d4a92bb8df Add text to speech module 2024-04-09 05:54:47 +02:00
Heiner Lohaus
24345bc07b Add DuckDuckGo Provider, Add SpeechRecognition to gui 2024-04-08 23:27:54 +02:00
Heiner Lohaus
926ddfd543 Add WhiteRabbitNeo Provider, Many tiny improvments in the gui 2024-04-08 07:24:00 +02:00
Heiner Lohaus
bdc61ca273 Add nodriver to OpenaiChat 2024-04-07 16:02:49 +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
992eb407eb
Update style.css 2024-04-06 18:38:42 +02:00
H Lohaus
93f6084055
Update index.html 2024-04-06 18:07:43 +02:00
H Lohaus
048077e6f2
Update index.html 2024-04-06 17:52:33 +02:00
H Lohaus
54fbe29d5d
Update style.css 2024-04-06 17:30:24 +02:00
H Lohaus
408e7a127d
Update index.html 2024-04-06 17:26:07 +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
9ca1297039
Update webview.py 2024-04-06 16:58:15 +02:00
H Lohaus
c092acf269
Update server 2024-04-06 16:57:06 +02:00
H Lohaus
510af1c62f
Update webview.py 2024-04-06 16:40:14 +02:00
H Lohaus
158aa8e7f6
Update webview.py 2024-04-06 16:37:19 +02:00
H Lohaus
233cd9dfd0
Update webview.py 2024-04-06 16:30:35 +02:00
H Lohaus
f260c3a5e8
Update run.py 2024-04-06 16:27:28 +02:00
H Lohaus
38c429ec38
Update gui 2024-04-06 16:25:11 +02:00
H Lohaus
a2240a711c
Update __init__.py 2024-04-06 16:21:22 +02:00
H Lohaus
adffb216cd
Update __init__.py 2024-04-06 16:02:12 +02:00
H Lohaus
2c5b646188
Update server 2024-04-06 16:02:00 +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
Heiner Lohaus
95bab66dad No arkose token and .har files 2024-03-26 06:42:47 +01:00
Heiner Lohaus
347d3f92da Add .har file support for OpenaiChat
Update model list of HuggingChat
Update styles of scrollbar in gui
Fix image upload in gui
2024-03-25 21:06:51 +01:00
Heiner Lohaus
2ee724f93e Add webview docs and examples, Set webview as default 2024-03-22 12:48:59 +01:00
Heiner Lohaus
0ab7cf71d4 Fix requirements in gui api 2024-03-19 20:43:51 +01:00
Heiner Lohaus
a466a86ee6 Fix requirements in gui api 2024-03-19 20:28:13 +01:00
Heiner Lohaus
486e43dabd Fix missing websocket_request_id in OpenaiChat
Add RateLimitErrors to Bing
Add android support to gui api
Add annotations import to gui api
2024-03-19 18:48:32 +01:00
Heiner Lohaus
b5b56f35ca Fix abort in webview 2024-03-17 10:51:08 +01:00
Heiner Lohaus
f797ec828c Fix GigaChat exceptions, Raise missing browser error 2024-03-16 20:02:15 +01:00
Heiner Lohaus
4778356064 Add conversation support for Bing 2024-03-16 18:07:53 +01:00
Heiner Lohaus
f861f322aa Add copilot conversation mode 2024-03-16 14:40:06 +01:00
Heiner Lohaus
905ced06bd Serverless webview gui 2024-03-16 10:48:37 +01:00
Heiner Lohaus
b7eee50930 Move raise_for_status, Create FormData wrapper 2024-03-15 14:55:53 +01:00
Heiner Lohaus
8cc6000ffb Add Pyinstaller support, Use curl_cffi in You provider 2024-03-15 11:46:06 +01:00
Heiner Lohaus
95b1b8c025 Add export / import conversations 2024-03-14 18:49:41 +01:00
Heiner Lohaus
012f40078a Filter not working provider from RetryProvider 2024-03-14 15:22:09 +01:00
Heiner Lohaus
993c9498c4 Add webview support to OpenaiChat 2024-03-14 13:53:57 +01:00
Heiner Lohaus
13f1275ca3 Add model preselection in gui 2024-03-13 17:52:48 +01:00
Heiner Lohaus
d2d8d7fb9e Remove generate images button 2024-03-13 12:47:38 +01:00
Heiner Lohaus
ecf110e59a Fix Bing create images, Add gui in webview init 2024-03-13 05:27:54 +01:00
Heiner Lohaus
5bcf21f9bd Add count chars to gui, Add retry support to fix rate limit in Bing 2024-03-12 18:45:22 +01:00
H Lohaus
6ef282de3a
Remove all not working provider (#1679)
Fix many providers
Add selenium-wire to requierments
2024-03-12 02:06:06 +01:00
Tekky
5f49264768
~ gui system prompt spacing
The spacing was misaligned, a little increase in the with fixes it
2024-03-09 21:36:25 +00:00
Heiner Lohaus
74a33f10dd Add word count from iG8R
Improve Bing provider
Some gui improvments
Improve error handling in gui
2024-03-09 19:05:05 +01:00
Heiner Lohaus
14167671d4 Add system message input to gui
Improve OpenaiChat provider
2024-03-09 03:10:59 +01:00
Heiner Lohaus
eb48299195 Enable Liaobots, disable Phind provider 2024-03-08 10:12:13 +01:00
Heiner Lohaus
ccac427ac1 Fiy unittests with duckduckgo-search 5.0 2024-03-06 17:41:17 +01:00
Heiner Lohaus
e889f3cb9b Use word word count from alfaaz 2024-03-06 17:23:33 +01:00
Heiner Lohaus
b6534aff73 Use word word count from alfaaz
Fix delete config on clear conversations
2024-03-06 17:22:04 +01:00
Heiner Lohaus
20ab17f31a Improve gui handling, Improve count tokens 2024-03-03 11:34:56 +01:00
Heiner Lohaus
1ec37aea22 Fix history on error, fix count words for chinese 2024-03-02 17:32:12 +01:00
Heiner Lohaus
3b96c27e3c Ignore empty auth header in api
Add live token count in gui
2024-02-29 14:44:51 +01:00
Heiner Lohaus
0bfaede7df Fix filter messages in gui 2024-02-26 11:48:05 +01:00
Heiner Lohaus
02b84fb519 Improve filter_messages in gui
Add rdns suport for proxies
2024-02-26 10:59:18 +01:00
Heiner Lohaus
12464bfac0 Improve mobile css styles 2024-02-25 21:31:52 +01:00
Heiner Lohaus
b4b74c991b gui: remove cursor on errors
Add auth header to GeminiPro provider
2024-02-25 15:48:03 +01:00
Heiner Lohaus
84b3a19c9d Improve show result in gui 2024-02-25 10:03:27 +01:00
Heiner Lohaus
0ade2098a6 Add count word and tokens in gui 2024-02-24 20:09:38 +01:00
Heiner Lohaus
55caf8e7de Add FlowGpt provider, Fix issue with None values in api 2024-02-24 14:52:23 +01:00
Heiner Lohaus
43cb4e614f Add remove messages from history
Improve hidding regenerated messages
2024-02-24 06:57:20 +01:00
Heiner Lohaus
1b4a86a857 Update client docs, Enable some tests 2024-02-22 04:35:11 +01:00
Heiner Lohaus
e5b7f72b71 Move some modules, create providers dir
Set min version for duckduckgo
Make duckduckgo search async
Remove get_lastet_version
2024-02-22 00:16:58 +01:00
Heiner Lohaus
d55a4c3ef5 Add MathJax to GUI #1563, Add model name to GUI #1600 2024-02-19 18:29:23 +01:00
Heiner Lohaus
aba4b96f23 Add new Client API with Docs
Use object urls for the preview of image uploads.
Fix upload images in You provider
Fix create image. It's now a single image.
Improve system message for create images.
2024-02-12 11:41:27 +01:00
Heiner Lohaus
76ec2064ad Add disable history button in GUI 2024-02-11 08:29:23 +01:00
Heiner Lohaus
331826b003 Add upload image in You provider 2024-02-11 06:59:53 +01:00
Heiner Lohaus
daf2b6ac3b Fix convert image to jpg in Bing
Fix display upload image in GUI
2024-02-11 03:33:02 +01:00
Heiner Lohaus
6c422b2965 Add GPT 4 support in You, Add camera input, Enable logging on debug in GUI, Don't load expired cookies 2024-02-11 01:59:57 +01:00
Heiner Lohaus
47900f2371 Resolve images in Gemini Provider 2024-02-09 03:31:05 +01:00
Heiner Lohaus
c1b992c346 Add Gemini Provider with image upload and generation 2024-02-08 22:02:52 +01:00
Heiner Lohaus
a28bab9387 Add aiohttp_socks to requirements
Fix preview for uploaded and generated images in gui
Improve typing, readme
2024-01-29 18:14:46 +01:00
Heiner Lohaus
1eb7dc05e5 Fix: ChromeDriver only supports characters in the BMP
Add set_cookies helper, Show last used model
2024-01-26 12:49:52 +01:00
H Lohaus
feb83c168b
New minimum requirements (#1515)
* New minimum requirements
* Add ConversationStyleOptionSets to Bing
* Add image.ImageRequest
* Improve python version support
* Improve unittests
2024-01-26 07:54:13 +01:00
Heiner Lohaus
2193d18865 Fix background in select box 2024-01-23 05:02:40 +01:00
Heiner Lohaus
07c944ad0a Add upload svg image support
Fix upload image in Bing Provider
2024-01-23 01:47:55 +01:00
Heiner Lohaus
9cbe9c1ccb Improve tests 2024-01-21 02:20:23 +01:00
H Lohaus
42709f55b2
Fix unittests (#1472)
* Fix unittests

* Fix missing distutils, install setuptools

* Fix version not found

* Remove deprecation in get_event_loop
2024-01-14 16:37:21 +01:00
Heiner Lohaus
32252def15 Change doctypes style to Google
Fix typo in latest_version
Fix Phind Provider
Add unittest worklow and main tests
2024-01-14 15:04:37 +01:00
Heiner Lohaus
5756586cde Refactor code with AI
Add doctypes to many functions
Add file upload for text files
Add alternative url to FreeChatgpt
Add webp to allowed image types
2024-01-14 07:45:41 +01:00
Heiner Lohaus
ceed364cb1 Fix process_image in Bing
Add ImageResponse to Bing
Fix cursor styling in gui
2024-01-13 18:10:43 +01:00
Heiner Lohaus
7968ae52fb Fix merge issues 2024-01-13 15:56:29 +01:00
Heiner Lohaus
ea8d6b847a Support upload image in gui
Add image upload to OpenaiChat
Add image response to OpenaiChat
Improve ChatGPT Plus Support
Remove unused requirements
2024-01-13 15:37:36 +01:00
Heiner Lohaus
a7c8565922 Add publish-to-pypi workflow
Improve gui frontend
Fix web search in bing
2024-01-12 02:14:35 +01:00
H Lohaus
bee75be8e3
Add create images to Bing (#1426)
Add create images from Bing
Add FreeChatgpt Provider
Fix Bard Provider
2024-01-10 10:34:56 +01:00
Heiner Lohaus
685aeff5ef Fix markdown replace 2024-01-02 01:03:39 +01:00
Heiner Lohaus
e0aaad8f47 Fix permissions for chromedriver
Fix NoVNC server access
Remove java from build
2024-01-01 23:20:48 +01:00
Heiner Lohaus
c617b18d12 Add support for all models
Add AbstractProvider class
Add ProviderType type
Add get_last_provider function
Add version module and  VersionUtils
Display used provider in gui
Fix error response in api
2024-01-01 17:48:57 +01:00
Yash Varshney
b5368c276d
remove unnecessary semicolon 2024-01-01 01:42:10 +05:30
NiNiyas
0b2f7898d4 fix(g4f): Fix typo in function name 2023-12-19 10:38:12 +05:30
Heiner Lohaus
b2d02ed624 Change default port for gui
Change default host for api
Disable gui in build
Add custom docker user
2023-12-11 02:50:33 +01:00
Heiner Lohaus
d743ee0c26 Add error classes
Move version check to debug
2023-12-11 00:56:06 +01:00
Heiner Lohaus
c7307030a9 Improve error handling in gui 2023-12-10 22:10:56 +01:00
Heiner Lohaus
bf41cfc5d1 Add G4F_PROXY environment
Add regenerate button in gui
2023-12-10 21:46:11 +01:00
Heiner Lohaus
bb34642fcb Update readme. Add docker hub 2023-12-07 14:30:55 +01:00
H Lohaus
484b96d850
Add websearch to gui (#1314)
* Add websearch to gui
* Fix version_check config
* Add version badge in README.md
* Show version in gui
* Add docker hub build
* Fix gui backend, improve style
2023-12-07 07:18:05 +01:00
Heiner Lohaus
c667f1cec5 Improve docker image 2023-12-06 11:54:50 +01:00
Heiner Lohaus
3576dee75a Add selenium to dockerfile
Load model and provider list in gui
Remove needs_auth in HuggingChat
Add default model and login url in gui
2023-12-06 09:35:36 +01:00
pakmmc
4359be5468
Remove height restriction
Currently has blank black space at the bottom of the screen on 13" devices
2023-11-08 13:55:55 +13:00
hdsz25
b8a3db526c
Update backend.py, index.html, requirements.txt (#1180)
* Update backend.py

change to the model that received from user interactive from the web interface model selection.

* Update index.html

added Llama2 as a provider selection and also include the model selection for Llama2: llama2-70b, llama2-13b, llama2-7b

* Update requirements.txt

add asgiref to enable async for Flask in api.
"RuntimeError: Install Flask with the 'async' extra in order to use async views"
2023-10-28 17:58:36 +02:00
unknown
03dc8532f9 added context 2023-10-27 23:35:10 +03:00
catmeowjiao
6fd2fa971f add proxy support 2023-10-26 22:18:38 +08:00
ⲘrṨhส∂ow
3982f39424
'Refactored by Sourcery' (#1125)
Co-authored-by: Sourcery AI <>
2023-10-23 09:46:25 +02:00
abc
04edb66065 ~
fix gui errors on iOS
2023-10-19 20:25:13 +01:00
abc
5b52d5a2ee ~ | g4f v-0.1.6.8
some quick fixes
2023-10-19 19:37:56 +01:00
abc
d4ab83a45b ~
automatic models fetching in GUI.
2023-10-19 15:14:48 +01:00
abc
76083c5a17 ~ 2023-10-19 14:27:29 +01:00
Ezra Adeyinka
6a74fc3a95 fix: remove typo in readme and configs 2023-10-13 08:05:51 +01:00
Arran Hobson Sayers
77697be333 Unify g4f tools into one CLI 2023-10-12 02:35:11 +01:00
Tekky
c433863f30
~ | Merge pull request #1044 from Lin-jun-xiang/main
Fix: TypeError: unsupported operand type(s) for |:...
2023-10-11 18:49:41 +01:00
hs_junxiang
50ecd887c8 Fix: TypeError: unsupported operand type(s) for |:... 2023-10-11 16:57:46 +08:00
Ikko Eltociear Ashimine
7e6df02367
fix typo in backend.py
occured -> occurred
2023-10-11 12:35:49 +09:00