-
Notifications
You must be signed in to change notification settings - Fork 153
Github Copilot Support #144
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
Comments
@davioliveira-dev how are you getting gh copilot to work? did you do a custom |
attempted configuring an opencode.json with no luck, would love to see github copilot as a provider option as it is free for students. @davioliveira-dev if you don't mind could you share how you achieved this configuration with opencode? Thanks! |
An example would be awesome I was just saying to someone at work that I want to try this exact setup. |
This is what worked for me:
2: Add copilot to the auth.json file~/.local/share/opencode/auth.json {
"copilot": {
"type": "api",
"key": "{{ paste oauth token from ~/.config/github-copilot/apps.json here }}"
}
} 4: Add the models to an opencode.json file in your project folderAdd the models to the opencode.json file in your project folder {
"$schema": "https://opencode.ai/config.json",
"provider": {
"copilot": {
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://api.githubcopilot.com"
},
"models": {
"gpt-4o": {
"name": "gpt-4o"
},
"claude-3.7-sonnet": {
"name": "claude-3.7-sonnet"
}
}
}
}
} |
Setting up as Open AI work, but Antrophic models doesn't shows up.
https://aider.chat/docs/llms/github.html
The text was updated successfully, but these errors were encountered: