Simatwa / python-tgpt

AI Chat in Terminal + Package + REST-API
https://python-tgpt.onrender.com
MIT License
102 stars 15 forks source link

Additional providers #14

Closed johnd0e closed 3 months ago

johnd0e commented 7 months ago

It would be nice to have also:

Simatwa commented 7 months ago

Could you provide links to these models.

Simatwa commented 7 months ago

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

johnd0e commented 7 months ago

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.

Simatwa commented 7 months ago

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.

johnd0e commented 7 months ago

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).

Simatwa commented 7 months ago

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

johnd0e commented 7 months ago

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 commented 7 months ago

Just updated the list (in the first post)

github-actions[bot] commented 7 months ago

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

sameedzahoor commented 6 months ago

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.

Simatwa commented 6 months ago

Okay I will look into it.

johnd0e commented 6 months ago

@sameedzahoor

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

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

github-actions[bot] commented 5 months ago

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

BenchBadr commented 5 months ago

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.

github-actions[bot] commented 4 months ago

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

Simatwa commented 4 months ago

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>"))
github-actions[bot] commented 4 months ago

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] commented 3 months ago

Closing due to inactivity.