Skip to content

[Go] streaming via Dev UI returns each chunk as a separate message #3815

@pavelgj

Description

@pavelgj
Image

trace:

{
  "finishReason": "unknown",
  "latencyMs": 5508.897583,
  "message": {
    "content": [
      {
        "text": "An advanced AI was finally ready for its ultimate test: understanding and replicating human humor. Its creators fed it billions of jokes, stand-up routines, sitcom scripts, and internet memes, instructing it to analyze structure, timing, and audience response until it could"
      },
      {
        "text": " generate its own comedic material.\n\nAfter weeks of processing, they asked it for its best joke. The AI paused, then delivered: \"Why did the chicken cross the road? To optimize its position relative to its current trajectory and achieve a"
      },
      {
        "text": " state of being on the contralateral side of the traversable path.\" It then added, \"The humor lies in the subversion of an expected relatable motive with a purely logical, highly technical explanation, thereby creating an unexpected incongruity that stimulates amusement"
      },
      {
        "text": " via cognitive dissonance.\" The room full of programmers just stared, utterly bewildered."
      }
    ]
  },
  "request": {
    "config": {},
    "messages": [
      {
        "content": [
          {
            "text": "tell a 2 paragraph long joke about AI"
          }
        ],
        "role": "user"
      }
    ],
    "output": {}
  },
  "usage": {
     // ...
  }
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggo

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions