Skip to content

Commit

Permalink
docs(dreamcode): prompt default to CAPI (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m authored Aug 27, 2024
1 parent 23e2028 commit b1043ea
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dreamcode.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ import {

const copilotExtension = new CopilotExtension({
agent: "my-app-name",
prompt: {
defaultModel: "gpt-4o",
},
});

copilotExtension.on(
Expand Down Expand Up @@ -79,7 +76,7 @@ Regarding the context passed to event handlers

- `message` / `confirmation` / etc are objects as received by the user
- `octokit` is a pre-authenticated octokit instance
- `prompt` is based on my work at https://github.com/github/gr2m-projects/blob/167/github-models/167-github-models/README.md. A simple API to interact with GitHub models.
- `prompt` is based on my work at https://github.com/github/gr2m-projects/blob/167/github-models/167-github-models/README.md. A simple API to interact with GitHub models. I assume we will default the prompt URL to `https://api.githubcopilot.com/chat/completions` and the model to `gpt-4o` (or whatever our CAPI name for that is?)
- `respond` is an API to send different types of responses to the user
- `log` is the logger as we use it in Octokit. See https://github.com/octokit/core.js?tab=readme-ov-file#logging

Expand Down

0 comments on commit b1043ea

Please sign in to comment.