Skip to content

Commit

Permalink
adjust generateTitle system prompt (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Sep 26, 2024
1 parent 210f4e2 commit 3abcf52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ const make = Effect.gen(function* () {

const generateTitle = (prompt: string) =>
completions.create.pipe(
AiInput.provideSystem("Create a short title summarizing the message."),
AiInput.provideSystem(
"Create a short title summarizing the message. Do not include markdown in the title.",
),
AiInput.provide(Str.truncateWords(prompt, 500)),
Effect.provideService(OpenAiCompletions.OpenAiConfig, {
temperature: 0.25,
Expand Down

0 comments on commit 3abcf52

Please sign in to comment.