python-tgpt icon indicating copy to clipboard operation
python-tgpt copied to clipboard

Additional providers

Open johnd0e opened this issue 2 years ago • 17 comments

It would be nice to have also:

  • [ ] gemini-pro: https://blog.google/technology/ai/google-gemini-ai/ Official SDK: https://github.com/google/generative-ai-python
  • [ ] copilot Bing: https://copilot.microsoft.com/ Libs:
    • https://github.com/xingty/EdgeGPT
    • https://github.com/vsakkas/sydney.py
    • https://github.com/Integration-Automation/ReEdgeGPT
  • [ ] copilot Github: https://github.com/features/copilot Sample code: https://github.com/CaoYunzhou/cocopilot-gpt
  • [x] Lib: https://github.com/xtekky/gpt4free (Many subproviders)
  • [ ] https://wrtn.ai/ (GPT-4, Claude 2.1 etc) Sample code: https://github.com/cannonLCK/wrtn_python
  • [ ] Claude https://claude.ai/chats Libs:
    • https://github.com/KoushikNavuluri/Claude-API/pulls
    • https://github.com/st1vms/unofficial-claude2-api
    • https://github.com/duck-web-dev/claude_api
  • [ ] https://huggingface.co/chat/ (Available Models: Mixtral-8x7B-Instruct-v0.1, Llama-2-70b-chat-hf, Nous-Hermes-2-Mixtral-8x7B-DPO, CodeLlama-34b-Instruct-hf, Mistral-7B-Instruct-v0.2, openchat-3.5-0106) Lib: https://github.com/Soulter/hugging-chat-api
  • [ ] NotionAI: https://www.notion.so/product/ai Lib: https://github.com/vaayne/notionai-py

johnd0e avatar Jan 18 '24 08:01 johnd0e

Could you provide links to these models.

Simatwa avatar Jan 18 '24 09:01 Simatwa

I would like to highlight the following.

Google's Bard powered by Gemini is already implemented though I'm not sure if it's pro. OpenAI's GPT4 is already implemented too. Thanks to WebChatGPT. It's accessed slightly different $ pytgpt webchatgpt

Simatwa avatar Jan 18 '24 09:01 Simatwa

Could you provide links to these models.

Done

Google's Bard powered by Gemini is already implemented though I'm not sure if it's pro

Google Bard is still powered by PaLM worldwide, only in US it is by Gemini. And current Bard support implementation is far less reliable than straightforward gemini api usage via Google SDK.

OpenAI's GPT4 is already implemented too. Thanks to WebChatGPT

Well, GPT-4 via web chat is available only with Plus subscription. But I actually mean https://github.com/xtekky/gpt4free, it is lib with many sub-providers.

johnd0e avatar Jan 18 '24 10:01 johnd0e

gpt4free is truly a masterpiece but one of it's major con is the dependency on Google Chrome, which renders it useless in certain devices/emulators such as Termux. Despite of that, it gonna serve as a useful resource for the providers which will otherwise be recreated.

Simatwa avatar Jan 18 '24 16:01 Simatwa

but one of it's major con is the dependency on Google Chrome

Most providers does not require it at all. Some can get cookies out of it (but it is also possible to provide cookies via arguments).

johnd0e avatar Jan 18 '24 17:01 johnd0e

And that's why we shall have to recreate them to achieve the said functionality.

Simatwa avatar Jan 18 '24 19:01 Simatwa

https://github.com/Simatwa/python-tgpt/blob/c90c6dc3cd7e6c469ac8169526a9d527a6a7ec75/requirements.txt#L10

You probably should not fix any particular version, as g4f is very unstable project: frequent updates, and frequent providers changes. Yesterday some providers were ok, but today they may just gone (possibly forever).

Also consider Status column of this table: https://github.com/xtekky/gpt4free/tree/main?tab=readme-ov-file#-providers-and-models: there are plenty providers, but only 12 marked as Active at the moment.

johnd0e avatar Jan 19 '24 01:01 johnd0e

Just updated the list (in the first post)

johnd0e avatar Jan 19 '24 23:01 johnd0e

Bumping this issue because it has been open for 14 days with no activity. Closing automatically in 14 days unless it becomes active again.

github-actions[bot] avatar Feb 08 '24 01:02 github-actions[bot]

I think we should add Gemini-pro api support since it's free upto 60 requests per minute. You need an api-key which can be generated by signing into Google AI Studio. Also check this out https://github.com/llegomark/gemini-pro-chat.

sameedzahoor avatar Feb 17 '24 18:02 sameedzahoor

Okay I will look into it.

Simatwa avatar Feb 18 '24 06:02 Simatwa

@sameedzahoor

I think we should add Gemini-pro api support since it's free

See https://github.com/PublicAffairs/openai-gemini

johnd0e avatar Mar 02 '24 23:03 johnd0e

Bumping this issue because it has been open for 14 days with no activity. Closing automatically in 14 days unless it becomes active again.

github-actions[bot] avatar Mar 17 '24 01:03 github-actions[bot]

Hello, I am not sure if it is the right place to ask but is there a way to use the g4f models other than the 13 first ones in the readme in python ? I can't find a way to use them along with pytgpt.

BenchBadr avatar Mar 24 '24 12:03 BenchBadr

Bumping this issue because it has been open for 14 days with no activity. Closing automatically in 14 days unless it becomes active again.

github-actions[bot] avatar Apr 16 '24 01:04 github-actions[bot]

Keep it aliv

Hello, I am not sure if it is the right place to ask but is there a way to use the g4f models other than the 13 first ones in the readme in python ? I can't find a way to use them along with pytgpt.

Try out this

import pytgpt.gpt4free as gpt4free
bot = gpt4free.GPT4FREE(provider="Koala")
print(bot.chat("<Your-prompt>"))

Simatwa avatar Apr 16 '24 08:04 Simatwa

Bumping this issue because it has been open for 14 days with no activity. Closing automatically in 14 days unless it becomes active again.

github-actions[bot] avatar May 07 '24 01:05 github-actions[bot]

Closing due to inactivity.

github-actions[bot] avatar May 21 '24 01:05 github-actions[bot]

More providers available via this lib: https://github.com/OE-LUCIFER/Webscout

johnd0e avatar Sep 15 '24 16:09 johnd0e