Skip to content

Need to understand how to tell the LLM to generate content into a new buffer (not modifying a file) #77

Open
@bzorn

Description

@bzorn

I have a prompt with the following header:

prompt({ title: "Prompt critic", 
         description: "Given a goal and a prompt, evaluate the prompt",
         replaces: "nothing",
         maxTokens: 4000,
         model: "gpt-4",
         categories: ["tutorial"]  })

def("SUMMARY", env.file)

I just want the output to go to a buffer (not modifying any file). When I run this I see this in the new buffer that appears. For some reason, only part of the AI output (the text withing triple backticks) is extracted into the buffer.

Image

But the AI output in the trace is this:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions