Skip to content

Commit a75e01c

Browse files
authored
docs(dreamcode): options.messages preset when using prompt in handlers (#51)
1 parent be9c476 commit a75e01c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dreamcode.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ Regarding the context passed to event handlers
9393
- `message` / `confirmation` / etc are objects as received by the user
9494
- `octokit` is a pre-authenticated octokit instance
9595
- `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?)
96-
- The `prompt` API will automatically apply interop transformations if the request is sent to an endpoint other than Copilot's chat complitions endpoint.
96+
- The `prompt` API
97+
- will automatically apply interop transformations if the request is sent to an endpoint other than Copilot's chat complitions endpoint.
98+
- will automatically pass through past messages unless explicitly overridden
9799
- `respond` is an API to send different types of responses to the user
98100
- `log` is the logger as we use it in Octokit. See https://github.com/octokit/core.js?tab=readme-ov-file#logging
99101

0 commit comments

Comments
 (0)