gpt4free icon indicating copy to clipboard operation
gpt4free copied to clipboard

If some one is free please tell me the best way to use Openaichat.py provider

Open Meshwa428 opened this issue 2 years ago • 7 comments

Please 🙏 tell me how to implement the access token in Openaichat

I was trying to pass the acces token in the chatcompletion.create(other stuff..., access_token="my access token")

But still it won't responde and just gives out some errors

Meshwa428 avatar Sep 27 '23 13:09 Meshwa428

i have the same error

edugamerplay1228 avatar Sep 27 '23 20:09 edugamerplay1228

Yes instead of Cookies, you can pass the access_token. Where did you get the token from?

hlohaus avatar Oct 01 '23 06:10 hlohaus

You can get the access token from https://chat.openai.com/api/auth/session

Meshwa428 avatar Oct 02 '23 05:10 Meshwa428

You have still errors?

    response = g4f.ChatCompletion.create(
        model=g4f.models.gpt_35_turbo,
        provider=g4f.Provider.OpenaiChat,
        messages=[{"role": "user", "content": "Create me a image with a lion."}],
        access_token="eyJhbGciOiJ.........",
        auth=True
    )

Works for me

hlohaus avatar Oct 02 '23 17:10 hlohaus

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

github-actions[bot] avatar Oct 10 '23 00:10 github-actions[bot]

how to enable gpt4? i've a plus subscription, if i use this code

response = g4f.ChatCompletion.create( model=g4f.models.gpt_4, provider=g4f.Provider.OpenaiChat, messages=[{"role": "user", "content": "am i talking with gpt4?"}], access_token="XXXX", auth=True

it answers:

You are currently interacting with ChatGPT, which is based on the GPT-3.5 architecture. As of my last knowledge update in September 2021, GPT-4 had not been released. If there have been any subsequent versions released after that date, I would not have information about them. Please check the official OpenAI website or other reliable sources for the most up-to-date information on their AI models.

how can i use gpt4?

Sublexyy avatar Oct 10 '23 15:10 Sublexyy

how to enable gpt4? i've a plus subscription, if i use this code

response = g4f.ChatCompletion.create( model=g4f.models.gpt_4, provider=g4f.Provider.OpenaiChat, messages=[{"role": "user", "content": "am i talking with gpt4?"}], access_token="XXXX", auth=True

it answers:

You are currently interacting with ChatGPT, which is based on the GPT-3.5 architecture. As of my last knowledge update in September 2021, GPT-4 had not been released. If there have been any subsequent versions released after that date, I would not have information about them. Please check the official OpenAI website or other reliable sources for the most up-to-date information on their AI models.

how can i use gpt4?

GPT4 not available

loic-roux-404 avatar Oct 12 '23 20:10 loic-roux-404