-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Azure Deployment Name Bug #1153
Comments
I just reread the instructions and I realized that the Azure Deployment Name should be the model name as well. Which kind of sucks because there are a bunch of projects dependent on that deployment name and a lot refactoring would have to be done. |
Hey @JiaCYu, we have our community meeting today, and I'll make sure we discuss this topic with the team and get back to you! |
If I understand the issue you're reporting correctly, this is due to the parameters that OpenAI expects for Azure deployments of its model and is not a GPTE-specific issue. |
@viborc I have a meeting conflict with today's dev meeting, but I can speak more about this if the issue isn't resolved during the meeting today. |
Sounds good @captivus! I might assign you to this one if we don't figure it out during the meeting! |
We decided to use your very generous offer to help us with this @captivus and @zigabrencic mentioned that he'll add some comments here, too! |
Hey. As discussed in the meeting today. My proposal would be to to sync the Azur part with same approach we use open models and Open router. For example (from here):
Instead of using custom @captivus what do you think? I don't know their hosting specs so I'm not sure if it's doable. |
Looking at this further, I think the bug may be ours and due to the way that we implement the model version in an opinionated way: gpt-engineer/gpt_engineer/core/ai.py Line 349 in 6698656
Let's discuss in our dev meeting. |
More thoughts here. @JiaCYu can you please set the This documentation may be helpful. This issue resolution may also prove helpful. Please try and feedback! |
@captivus Sorry for the late reply. I set The deployment I have is named |
Can you please try referencing one of the available deployments in your environment, as shown in the output you provided? The error suggests that you are trying to use a model that is unavailable. Also, kindly share text outputs in addition to screenshots if additional debugging is needed. We will upgrade the default version to use the latest supported model in Azure, which is |
Policy and info
Expected Behavior
There shouldn't be an error with the model name.
Current Behavior
Deployment name seems to mix with model name.
Everything seems to work perfectly and code is being made:
![image](https://private-user-images.githubusercontent.com/145611451/331280356-9fd4fcf5-d78e-4179-9406-a98867a9dfc1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgwNjk5NDcsIm5iZiI6MTcxODA2OTY0NywicGF0aCI6Ii8xNDU2MTE0NTEvMzMxMjgwMzU2LTlmZDRmY2Y1LWQ3OGUtNDE3OS05NDA2LWE5ODg2N2E5ZGZjMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxMVQwMTM0MDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kZDQzMzZlODQ5MzdhZGE0ODBjMmIzZjFlNjJmYWQ4NjgzOTkwNjE1NDAxMmNmMzI5OTRjOTcyMDk2ZDlhZDAwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.eCnuUle-IvP9aQs9boNJrMjsgqO8c1x-yVxnsklLPGw)
But then an error pops up telling me that the model doesn't exist and it takes my Azure OpenAI deployment name and says it's not a model.
![image](https://private-user-images.githubusercontent.com/145611451/331281663-de5d275e-aa79-4d55-899e-ecf87d7a4261.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgwNjk5NDcsIm5iZiI6MTcxODA2OTY0NywicGF0aCI6Ii8xNDU2MTE0NTEvMzMxMjgxNjYzLWRlNWQyNzVlLWFhNzktNGQ1NS04OTllLWVjZjg3ZDdhNDI2MS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxMVQwMTM0MDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xZGI5YmUyNjE5ZGI4OTU2ODg3OTBjZmYzY2FjOGI0ZThmOTZmMTQ0NTBiMGQzM2M4ZjNhNjA4YzRhMzQ1ZWVkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9._QpUExY-4zKeY08EKHesYARefZES-yci1F2oX2cmSv4)
Here is the command style I used following these instructions from here: https://gpt-engineer.readthedocs.io/en/latest/open_models.html
![image](https://private-user-images.githubusercontent.com/145611451/331282749-987113ca-0616-4a38-9f35-ccec2cebda5d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgwNjk5NDcsIm5iZiI6MTcxODA2OTY0NywicGF0aCI6Ii8xNDU2MTE0NTEvMzMxMjgyNzQ5LTk4NzExM2NhLTA2MTYtNGEzOC05ZjM1LWNjZWMyY2ViZGE1ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxMVQwMTM0MDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jNGFhMDExZGExNzgwODllOTc4ZmFkZGNjYjMyZTkzNGNkZDU4NjdiZWRhNjljNzQyYzM1Nzg0ZjkzODk0Y2VkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.OXnlURhysq0PHdLpvkIFw8eQ-w1VwvT8blkv9oIae2Y)
gpt-engineer --azure [redacted_endpoint_url] ./snake_game/ [redacted_deployment_name]
Additional Failure Information
Using Azure OpenAI with gpt-4-turbo deployed with a different deployment name. Only installed gpt-engineer in a virtual environment.
The text was updated successfully, but these errors were encountered: