Commit Graph

151 Commits

Author SHA1 Message Date
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
abc
c9c573a6e6 ~ | remove DeepAi 2023-10-10 22:04:42 +01:00
abc
8964d15dc3 ~ | g4f v-0.1.5.8 2023-10-10 15:48:56 +01:00
Commenter123321
be41898736 fix html 2023-10-10 15:56:35 +02:00
Commenter123321
86f7ea6b08 what 2023-10-10 15:54:07 +02:00
Commenter123321
d3040b0c14 change discord icon to telegram icon on gui 2023-10-10 15:37:29 +02:00
Commenter123321
9239c57200 fix provider thing in gui x2 2023-10-10 15:11:17 +02:00
Commenter123321
2c105cb595 fix provider thing in gui 2023-10-10 14:53:50 +02:00
Commenter123321
d719860e2a make internet searching better 2023-10-10 14:47:41 +02:00
abc
e05987ace3 ~ | g4f v-0.1.5.7 [Set Provider in GUI] + Provider Proxy 2023-10-09 23:47:58 +01:00
abc
abc2fa2ca1 ~
Command line arguments for GUI
2023-10-09 23:46:14 +01:00
abc
7f8526a122 ~
New system for str to Provider
2023-10-09 23:46:02 +01:00
abc
64fe0ee487 ~ | g4f v-0.1.5.6
gui & interference can now be run with:

python -m g4f.gui.run

and

python -m g4f.interference.run
2023-10-08 13:31:46 +01:00