xtekky / gpt4free

The official gpt4free repository | various collection of powerful language models
https://g4f.ai
GNU General Public License v3.0
60.24k stars 13.24k forks source link

You.com - The project owner has not authorized the SDK to call this endpoint #2048

Closed Looksh190 closed 2 months ago

Looksh190 commented 4 months ago

C:\Users\User>g4f api Starting server... [g4f v-0.3.2.0] INFO: Started server process [6004] INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:1337 (Press CTRL+C to quit) INFO: 127.0.0.1:49931 - "GET /v1/models HTTP/1.1" 200 OK ERROR:root:Response 401: {"status_code":401,"request_id":"request-id-live-bfe65645-85d3-4576-bb6c-1ee26f6ba59f","error_type":"endpoint_not_authorized_for_sdk","error_message":"The project owner has not authorized the SDK to call this endpoint. Please enable it in the dashboard to continue: https://stytch.com/dashboard/sdk-configuration.","error_url":"https://stytch.com/docs/api/errors/401#endpoint_not_authorized_for_sdk"} Traceback (most recent call last): File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\g4f\api__init__.py", line 167, in chat_completions return JSONResponse((await response).to_json()) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\g4f\client\async_client.py", line 71, in iter_append_model_and_provider async for chunk in response: File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\g4f\client\async_client.py", line 42, in iter_response async for chunk in response: File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\g4f\Provider\You.py", line 80, in create_async_generator cookies = await cls.get_cookies(session) if chat_mode != "default" else None File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\g4f\Provider\You.py", line 167, in get_cookies cls._cookies = await cls.create_cookies(client) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\g4f\Provider\You.py", line 215, in create_cookies await raise_for_status(response) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\g4f\requests\raise_for_status.py", line 28, in raise_for_status_async raise ResponseStatusError(f"Response {response.status}: {message}") g4f.errors.ResponseStatusError: Response 401: {"status_code":401,"request_id":"request-id-live-bfe65645-85d3-4576-bb6c-1ee26f6ba59f","error_type":"endpoint_not_authorized_for_sdk","error_message":"The project owner has not authorized the SDK to call this endpoint. Please enable it in the dashboard to continue: https://stytch.com/dashboard/sdk-configuration.","error_url":"https://stytch.com/docs/api/errors/401#endpoint_not_authorized_for_sdk"}

ZodiussDev commented 3 months ago

me too

giaphupham commented 3 months ago

me too !

Anonymous6598 commented 3 months ago

Have you read docs about YOU.com provider?

Anonymous6598 commented 3 months ago

It seems that YOU provider is broken and requires some fixes. Try using another provider or use LocalClient() class, therefore you will not need to depend on the provider. Use mistral-7b-openorca model, because YOU uses it. But to install it, you need to run IDE or code editor in admin mode.

Anonymous6598 commented 3 months ago

Do you want me to show you, how to use the local model?

Looksh190 commented 3 months ago

Do you want me to show you, how to use the local model?

I originally wanted to get some kind of answer from xtekky about this, perhaps to find a solution to this problem with other users, since YOU.com provider has limited its use again. Where did YOU see even a word about local models? We are talking about Claude and GPT-4. Thank YOU, but that's not a solution to the problem.

Anonymous6598 commented 3 months ago

From g4f docs site

Anonymous6598 commented 3 months ago

https://g4f.mintlify.app/docs/core/usage/local

Anonymous6598 commented 3 months ago

You can see list of local models. Perhaps something might be suitable.

Anonymous6598 commented 3 months ago

@Looksh190, did it help?

ExecutedPoorly commented 3 months ago

@Anonymous6598 Just wanted to say thanks, I'm using another local image model and with this I can completely automate everything now.

Anonymous6598 commented 3 months ago

@Anonymous6598 Just wanted to say thanks, I'm using another local image model and with this I can completely automate everything now.

You're welcome

Anonymous6598 commented 3 months ago

@Looksh190, are you going to close this issue as finished?

Looksh190 commented 3 months ago

@Looksh190, are you going to close this issue as finished?

Your alternative doesn't solve the problem with You.com, I still get the SDK error and the local models don't interest me

Anonymous6598 commented 3 months ago

Ok, I get it.

Anonymous6598 commented 3 months ago

Wait, try installing Claude-3.gguf file and put it in the folder for local models. Consider this option only if you can do it.

Looksh190 commented 3 months ago

Wait, try installing Claude-3.gguf file and put it in the folder for local models. Consider this option only if you can do it.

You seem to be a bit misunderstanding the phenomenon of models like the Claude and GPT-3.5/4/4o. These aren't small local models, they have completely different weight classes, literally. They run on huge servers, not desktop PCs. That's why I need help with a You.com provider that provides access to such modern language models

Anonymous6598 commented 3 months ago

I get it.

github-actions[bot] commented 3 months ago

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

Looksh190 commented 3 months ago

Are they going to remove You.com from the list of providers?

github-actions[bot] commented 3 months ago

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

Closing due to inactivity.