Skip to content

Does runtime.FixOpenAI not support lists #34

Description

@jlewi

Is there an issue with Fix.OpenAI not working with messages that contain lists of other messages? It doesn't seem like it is recoursing into fields.

Here's an example of OpenAI json that didn't get fixed.

{
  "cells": [
    {
      "call_id": "1",
      "doc_results": [],
      "execution_summary": null,
      "kind": "CELL_KIND_CODE",
      "language_id": "python",
      "metadata": [
        {
          "key": "agent/summary",
          "value": "A simple hello world program."
        }
      ],
      "outputs": [],
      "ref_id": "",
      "role": "CELL_ROLE_USER",
      "text_range": null,
      "value": "print('Hello, World!')"
    }
  ]
}

Here cells is a list of items and FixOpenAI doesn't seem to be recoursing into the list; so metdata doesn't get fixed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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