Helicone Community Page

n
noli
Offline, last seen 2 months ago
Joined August 29, 2024
Most likely due to the fact that the prompt is empty
2 comments
J
c
Setting a custom date range on the requests page doesn't work if the two dates are on the same day
How can I use the experiments/prompts feature if my prompt uses multiple system messages as examples?

Here is the example provided in the docs https://docs.helicone.ai/features/prompts
Plain Text
// 1. Add these lines
import { hpf, hpstatic } from "@helicone/prompts";

const chatCompletion = await openai.chat.completions.create(
  {
    messages: [
      {
        role: "system",
        // 2. Use hpstatic for static prompts
        content: hpstatic`You are a creative storyteller.`,
      },
      {
        role: "user",
        // 3: Add hpf to any string, and nest any variable in additional brackets `{}`
        content: hpf`Write a story about ${{ character }}`,
      },
    ],
    model: "gpt-3.5-turbo",
  },
  {
    // 3. Add Prompt Id Header
    headers: {
      "Helicone-Prompt-Id": "prompt_story",
    },
  }
);


My prompt looks like this though
Plain Text
messages: [
      {
        role: "system",
        content: `You are a creative storyteller.`,
      },
      {
        role: "user",
        content: `Example 1`,
      },
      {
        role: "assistant",
        content: "Output 1",
      },
      {
        role: "user",
        content: `Example 2`,
      },
      {
        role: "assistant",
        content: "Output 2",
      },
      {
        role: "user",
        content: input
      },
    ],
2 comments
J
n
noli
·

No logs

Any chance Helicone is having some issues logging requests? I'm not able to see any requests since yesterday morning (Aug 19, 10am).

We haven't really changed anything in our deployment.
2 comments
n
J