-
-
Notifications
You must be signed in to change notification settings - Fork 394
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
[Enhancement]: More configurations for GitHub Copilot chat (language, model, etc.) #612
Comments
I guess you are using GitHub Copilot Chat? Language, temperature and additional system prompt doesn't work for GitHub Copilot chat. |
Looks like they have a parameter for that now, will give it a try next release. userLanguage: T.Optional(T.String()), |
Thanks! (I'm also using Zed's chat feature where GH Copilot automatically answers in the same language of the question.) By the way, is there an option to choose the underlying model of GitHub Copilot? Because Claude is better than OpenAI models. (Also available in Zed's chat panel.) |
I wish I know. There is no documentation so we need to dig into the obfuscated source code for it. |
Ok since Zed is open source, we can copy their implementations. zed-industries/zed@6f06558 By glancing at the code, I think they are calling the endpoint directly. I am not sure if it is the right way to go since some other repositries were blocked because of that. |
But zed is apparently more popular than this project. If zed survives, I think it would be safe to just call the API directly? But I don't have time for it right now, if anyone wants to contribute, let me know. |
After digging into the language server code, I can't find anything that allows users to specify the model for GitHub Copilot chat. For anyone interested, the chat feature will call If you really want to use Claude in GitHub Copilot chat right now, you can open the language-server.js in VSCode, format the code and search for something like case "gpt-4o":
return {
modelId: i.id,
uiName: i.name,
modelFamily: r,
maxRequestTokens: await $St(this.ctx, i),
maxResponseTokens: 4096,
baseTokensPerMessage: 3,
baseTokensPerName: 1,
baseTokensPerCompletion: 3,
tokenizer: "o200k_base",
isExperimental: (c = i.isExperimental) != null ? c : !1,
}; and change the model id to Update: I am not very sure but if it doesn't reach the fallback value in your case, you can try editing the model family list by searching for code that looks like: function Yo(e) {
switch (e) {
case "user":
case "inline":
return ["gpt-4o", "gpt-4-turbo", "gpt-4"];
case "meta":
case "suggestions":
case "synonyms":
return ["gpt-4o-mini", "gpt-3.5-turbo"];
}
} And add |
The language option will now take effect in GitHub Copilot chat in 0.35.3. |
Before Reporting
What happened?
How to reproduce the bug.
It just happened!
Relevant log output
No response
macOS version
15.1.1
Xcode version
16.1
Copilot for Xcode version
0.35.2
The text was updated successfully, but these errors were encountered: