Code interpreter seems to be offline? (Agents API)

Hi!
Just started playing with the Agents API, created an Agent and enabled Code Interpreter on it.

Then created a thread where I ask it to make a simple computation. I can see that it created the Python program, but it failed getting the result.

It replied “Oops, it seems there was an internal problem when trying to execute the code.”

Then it tried again with a slight variation of the program and still couldn’t get the result.

The program it wrote is valid (I checked with a local Python interpreter).

So it seems the code interpreter tool isn’t working right now?

Here are my Run’s Steps:

{
  "object": "list",
  "data": [
    {
      "id": "step_YI8S62Ed5XMX79FsYq4W8L69",
      "object": "thread.run.step",
      "created_at": 1701610803,
      "run_id": "run_REdt7GHfigGXaOFiKZyt6Ztu",
      "assistant_id": "asst_i3PfSPJ3rjCygsS0Rh3srZTZ",
      "thread_id": "thread_MHYoVSkCUw4TaxxA62BZVRIA",
      "type": "message_creation",
      "status": "completed",
      "cancelled_at": null,
      "completed_at": 1701610809,
      "expires_at": null,
      "failed_at": null,
      "last_error": null,
      "step_details": {
        "type": "message_creation",
        "message_creation": {
          "message_id": "msg_eYaTvoUETdCIRmd289YgFvDO"
        }
      }
    },
    {
      "id": "step_0E63KWRqMsoht4loUuPFhQrp",
      "object": "thread.run.step",
      "created_at": 1701610784,
      "run_id": "run_REdt7GHfigGXaOFiKZyt6Ztu",
      "assistant_id": "asst_i3PfSPJ3rjCygsS0Rh3srZTZ",
      "thread_id": "thread_MHYoVSkCUw4TaxxA62BZVRIA",
      "type": "tool_calls",
      "status": "completed",
      "cancelled_at": null,
      "completed_at": 1701610803,
      "expires_at": null,
      "failed_at": null,
      "last_error": null,
      "step_details": {
        "type": "tool_calls",
        "tool_calls": [
          {
            "id": "call_MJMr64lwkN6bhjls0mPsP6du",
            "type": "code_interpreter",
            "code_interpreter": {
              "input": "def fibonacci(n):\n    a, b = 0, 1\n    for _ in range(n):\n        a, b = b, a + b\n    return a\n\n# Calculate the 28th Fibonacci number\nfibonacci_28 = fibonacci(28)\nfibonacci_28",
              "outputs": []
            }
          }
        ]
      }
    },
    {
      "id": "step_tOBJ3jGiA4b6rhnCO1EaqWiy",
      "object": "thread.run.step",
      "created_at": 1701610782,
      "run_id": "run_REdt7GHfigGXaOFiKZyt6Ztu",
      "assistant_id": "asst_i3PfSPJ3rjCygsS0Rh3srZTZ",
      "thread_id": "thread_MHYoVSkCUw4TaxxA62BZVRIA",
      "type": "message_creation",
      "status": "completed",
      "cancelled_at": null,
      "completed_at": 1701610784,
      "expires_at": null,
      "failed_at": null,
      "last_error": null,
      "step_details": {
        "type": "message_creation",
        "message_creation": {
          "message_id": "msg_XqKBssaV9sbJQUVN81OCs7Gj"
        }
      }
    },
    {
      "id": "step_Qgm11uQzy7KPY4eUg2PQQGT2",
      "object": "thread.run.step",
      "created_at": 1701610760,
      "run_id": "run_REdt7GHfigGXaOFiKZyt6Ztu",
      "assistant_id": "asst_i3PfSPJ3rjCygsS0Rh3srZTZ",
      "thread_id": "thread_MHYoVSkCUw4TaxxA62BZVRIA",
      "type": "tool_calls",
      "status": "completed",
      "cancelled_at": null,
      "completed_at": 1701610782,
      "expires_at": null,
      "failed_at": null,
      "last_error": null,
      "step_details": {
        "type": "tool_calls",
        "tool_calls": [
          {
            "id": "call_ywsG8ym7NxATKUjvz0m38vZj",
            "type": "code_interpreter",
            "code_interpreter": {
              "input": "# Define a function to calculate the nth Fibonacci number\ndef fibonacci(n):\n    if n <= 0:\n        return 0\n    elif n == 1:\n        return 1\n    else:\n        a, b = 0, 1\n        for _ in range(2, n + 1):\n            a, b = b, a + b\n        return b\n\n# Calculate the 28th Fibonacci number\nfibonacci_28 = fibonacci(28)\nfibonacci_28",
              "outputs": []
            }
          }
        ]
      }
    }
  ],
  "first_id": "step_YI8S62Ed5XMX79FsYq4W8L69",
  "last_id": "step_Qgm11uQzy7KPY4eUg2PQQGT2",
  "has_more": false
}

I think "outputs" shouldn’t be empty, right?

Any idea what’s happening?

Oh well, it seems to work now. I guess it was a temporary issue.