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

Edit mode using Azure OpenAI broken by prediction option on 0.8.57/0.9.231 #2981

Open
3 tasks done
jason-nance opened this issue Nov 18, 2024 · 1 comment
Open
3 tasks done
Assignees
Labels
area:inline-edit Relates to the auto refactor feature ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior "needs-triage" priority:high Indicates high priority

Comments

@jason-nance
Copy link

Before submitting your bug report

Relevant environment info

- OS: macOS
- Continue version: v0.8.57 (v0.9.231 also affected)
- IDE version: VS Code 1.95.2 (Universal)
- Model: gpt-4o (via Azure OpenAI
- config.json: (relevant parts)
  
{
  "models": [
    {
      "apiKey": "redacted",
      "engine": "gpt-4o (version:2024-08-06)",
      "apiBase": "redacted",
      "apiType": "azure",
      "apiVersion": "2024-10-21",
      "deployment": "gpt-4o",
      "model": "gpt-4o",
      "title": "gpt-4o",
      "systemMessage": "You are an expert software developer. You give helpful and concise responses.",
      "provider": "azure"
  ],
...

Description

Edit mode is broken for gpt-4o on Azure OpenAI since the changes to add Predicted Output support for OpenAI models (#2837). Trying to use it results in the following error:

Unrecognized request argument supplied: prediction

I believe the Azure LLM just needs to override supportsPrediction to return false until Azure OpenAI supports the parameter.

To reproduce

  1. Configure gpt-4o via Azure OpenAI as the chat model
  2. Trigger any edit command (Cmd+i)

Log output

Error streaming diff: Error: HTTP 400 model_error from <redacted>/openai/deployments/gpt-4o/chat/completions?api-version=2024-10-21  {   "error": {     "message": "Unrecognized request argument supplied: prediction",     "type": "invalid_request_error",     "param": null,     "code": null   } }
@sestinj sestinj self-assigned this Nov 18, 2024
@dosubot dosubot bot added area:inline-edit Relates to the auto refactor feature ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior priority:high Indicates high priority labels Nov 18, 2024
@ntaylor-ads
Copy link

Facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:inline-edit Relates to the auto refactor feature ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior "needs-triage" priority:high Indicates high priority
Projects
None yet
Development

No branches or pull requests

3 participants