Skip to content

req.body.messages returns blank #9

Open
@ambilykk

Description

While using this debug tool, we were not able to extract the user message and pass it to the target LLM.
Following code works fine with deployed extension; but fails with blank messages in local debug setup

 let messages = [];
  if (req.body && req.body.messages) {
    messages = req.body.messages
      .filter(({ content, name }) => content && !name)
      .map(({ role, content }) => ({
        role,
        content
      }));
  }

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