Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I keep getting the error #225

Open
MRDOGHOG opened this issue Sep 2, 2024 · 2 comments
Open

I keep getting the error #225

MRDOGHOG opened this issue Sep 2, 2024 · 2 comments

Comments

@MRDOGHOG
Copy link

MRDOGHOG commented Sep 2, 2024

HttpRequestException: Error at chat/completions (https://api.openai.com/v1/chat/completions) with HTTP status code: BadRequest. Content:

<title>400 Bad Request</title>

400 Bad Request


cloudflare My Code is from https://www.immersivelimit.com/tutorials/how-to-use-chatgpt-in-unity, and I'm using Version 1.6. How to fix?
@MRDOGHOG
Copy link
Author

MRDOGHOG commented Sep 2, 2024

HttpRequestException: Error at chat/completions (https://api.openai.com/v1/chat/completions) with HTTP status code: BadRequest. Content:

@MRDOGHOG
Copy link
Author

MRDOGHOG commented Sep 2, 2024

If I use version 1.11 I get the error:
Assets\ThirdParty\OkGoDoIt\OpenAI_API\OpenAIAPI.cs(38,10): error CS0246: The type or namespace name 'IHttpClientFactory' could not be found (are you missing a using directive or an assembly reference?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant