Skip to content

Commit

Permalink
docs: document that instructions are derived from functions
Browse files Browse the repository at this point in the history
  • Loading branch information
lucgagan committed Nov 12, 2023
1 parent 4d626c0 commit bf45904
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/prompt.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { TaskMessage } from "./types";

/**
* The prompt itself is very simple because the vast majority of the logic is derived from
* the instructions contained in the parameter and function descriptions provided to `openai.beta.chat.completions`.
* @see https://www.npmjs.com/package/openai#automated-function-calls
* @see https://openai.com/blog/function-calling-and-other-api-updates
*/
export const prompt = (message: TaskMessage) => {
return `This is your task:
Expand Down

0 comments on commit bf45904

Please sign in to comment.