gpt-engineer: Azure Deployment Name Bug

Policy and info

  • Maintainers will close issues that have been stale for 14 days if they contain relevant answers.
  • Adding the label “sweep” will automatically turn the issue into a coded pull request. Works best for mechanical tasks. More info/syntax at: https://docs.sweep.dev/

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

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

Here is the command style I used following these instructions from here: https://gpt-engineer.readthedocs.io/en/latest/open_models.html image

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.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20

Commits related to this issue

Most upvoted comments

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):

export OPENAI_API_BASE="https://openrouter.ai/api/v1"
export OPENAI_API_KEY="sk-key-from-open-router"
export MODEL_NAME="meta-llama/llama-3-8b-instruct:extended"
gpte <project_dir> $MODEL_NAME --lite --temperature 0.1

Instead of using custom --azure flag.

@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:

https://github.com/gpt-engineer-org/gpt-engineer/blob/66986568a116308743bc624f8ffbabe8b82ce897/gpt_engineer/core/ai.py#L349

Let’s discuss in our dev meeting.

@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.

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!