gpt4free
gpt4free copied to clipboard
If some one is free please tell me the best way to use Openaichat.py provider
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
i have the same error
Yes instead of Cookies, you can pass the access_token. Where did you get the token from?
You can get the access token from https://chat.openai.com/api/auth/session
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
Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.
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?
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=Trueit 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