From a497ee8defb61863e203919823c138816d7fb9b3 Mon Sep 17 00:00:00 2001 From: Gregor Martynus <39992+gr2m@users.noreply.github.com> Date: Mon, 2 Sep 2024 21:10:54 -0700 Subject: [PATCH] docs(dreamcode): `options.messages` preset when using `prompt` in handlers --- dreamcode.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dreamcode.md b/dreamcode.md index d5bc969..baac364 100644 --- a/dreamcode.md +++ b/dreamcode.md @@ -93,7 +93,9 @@ 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. 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?) -- The `prompt` API will automatically apply interop transformations if the request is sent to an endpoint other than Copilot's chat complitions endpoint. +- The `prompt` API + - will automatically apply interop transformations if the request is sent to an endpoint other than Copilot's chat complitions endpoint. + - will automatically pass through past messages unless explicitly overridden - `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