Problem with Assistant - max length 32K even with the gpt-4-1106-preview and trying to get the status I get a passed three arguments error even though I only passed two

The first time I’ve had a look at this, and nothing to run it against…

image

The only positional parameter is run_id, others need to be specified.

data you might have retrieved:

created_thread = {
  "id": "thread_abc123",
  "object": "thread",
  "created_at": 1699012949,
  "metadata": {}
}
created_run = {
  "id": "run_example123",
  "object": "thread.run",
  "created_at": 1698107661,
  "assistant_id": "asst_gZ1aOomboBuYWPcXJx4vAYB0",
  "thread_id": "thread_adOpf7Jbb5Abymz0QbwxAh3c",
  "status": "completed",
  "started_at": 1699073476,
  "expires_at": null,
  "cancelled_at": null,
  "failed_at": null,
  "completed_at": 1699073498,
  "last_error": null,
  "model": "gpt-4",
  "instructions": null,
  "tools": [{"type": "retrieval"}, {"type": "code_interpreter"}],
  "file_ids": [],
  "metadata": {}
}

your code:

run_status = client.beta.threads.runs.retrieve(
    run_id = created_run['id'], thread_id = created_thread['thread_id'])
1 Like