You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Relevant part as of now (dreamcode.md will likely change soon):
// https://github.com/github/copilot-partners/blob/6d1cde3a1abb147da53f1a39864661dc824d40b5/docs/confirmations.mdcopilotExtension.on("confirmation",async({ confirmation, octokit, prompt, respond, log })=>{if(confirmation.id==="joke"){if(confirmation.state==="dismissed"){awaitrespond.text("Okay, maybe next time!");return;}awaitrespond.text(prompt.stream("Please tell me a joke about Mona Lisa, Github's mascot."));return;}log.warn("Received an unknown confirmation:",confirmation.id);awaitrespond.text("Hmm, something went wrong. Please try again later.");});
Not sure what the best way will be yet, but I want the prompt and response APIs to work together nicely.
Similar to the Octokit REST APIs, a method could exist to invoke the
completions
API for 3P integrators.For potential consistency, here an OpenAI-inspired version:
curl for completions:
The text was updated successfully, but these errors were encountered: