bugs

Open
#813 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
macos, swift
Domain
api, desktop

Research direction

No source file, test, version, or reproduction step is named. Start by locating where Copilot for Xcode builds the server request, reproduce the 400 response with the affected model, and verify that the generated request uses the parameter accepted by that model and produces a response.

Written by the indexing model from the issue text.

Description

reviewed

Describe the bug

sorry, an error occurred while generating a response. Details: unhandled status from server: 400 "error": "message":"Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max _completion_tokens' instead.", "code": "invalid _request_body"))
Request ID: b1488821-da53-48ca-9736-8be5a0b18245
Versions

  • Copilot for Xcode: [e.g. 0.47.0]
  • Xcode: [e.g. 26.2.0]
  • macOS: [e.g. 14.6.1]

Steps to reproduce
1.
2.

Screenshots

Logs

Additional context

Dominant language
Swift
Stars
6.3k
Forks
2k
Avg merge
3d 21h
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/CopilotForXcode

All issues in github/CopilotForXcode

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.