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

Github Copilot: "bad request: unknown integration" #407

Open
nathabonfim59 opened this issue Dec 15, 2024 · 1 comment
Open

Github Copilot: "bad request: unknown integration" #407

nathabonfim59 opened this issue Dec 15, 2024 · 1 comment

Comments

@nathabonfim59
Copy link

Describe the bug
When I try to use Github Copilot as my provider, I get the error "Unknown integration"

Setup
Please complete the following information along with version numbers, if applicable.

  • OS [Linux pop-os 6.9.3-76060903-generic #202405300957173214176822.04~f2697e1 SMP PREEMPT_DYNAMIC Wed N x86_64 x86_64 x86_64 GNU/Linux]
  • Shell [bash]
  • Terminal Emulator [wezterm]
  • Terminal Multiplexer [tmux]

To Reproduce
Steps to reproduce the behavior:

  1. Configure GitHub copilot as your provider (config attached)
  2. Run any command like
mods Hello

Source Code

Config file

default-model: gpt-4o
format-text:
  markdown: 'Format the response as markdown without enclosing backticks.'
  json: 'Format the response as json without enclosing backticks.'
roles:
  "default": []
format: false
role: "default"
raw: false
quiet: false
temp: 1.0
topp: 1.0
topk: 50
no-limit: false
word-wrap: 80
include-prompt-args: false
include-prompt: 0
max-retries: 5
fanciness: 10
status-text: Generating
theme: charm
max-input-chars: 12250
apis:
  copilot:
    base-url: https://api.githubcopilot.com
    models:
      gpt-4o:
        max-input-chars: 392000
      gpt-3.5-turbo:
        aliases: ["35t"]
        max-input-chars: 12250
        fallback: gpt-3.5
      claude-3.5-sonnet:
        aliases: ["claude3.5-sonnet", "claude-3-5-sonnet", "sonnet-3.5"]
        max-input-chars: 680000

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots

Error
image

Request
image

Response
image

@nathabonfim59
Copy link
Author

I made a PR that addresses the problem and adds some improvements to the current copilot support.

#406

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