List assistants is broken?

it does not matter what params are provided e.g., using limit=20 like below

curl "https://api.openai.com/v1/assistants?order=desc&limit=20" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "OpenAI-Beta: assistants=v1"

return the exact same list regardless of whether limit=1, 2 or 20. Other params like order, after etc. also do not work.

Let’s test this assertion. With Python.

import os
import requests

"""
First, let's create a function that uses the `requests` library
to make the API call. We'll also use the `os` library to get the
API key from the environment variable.
"""

def get_assistants(order, limit):
    OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
    headers = {
        "Content-Type": "application/json",
        "Authorization": f"Bearer {OPENAI_API_KEY}",
        "OpenAI-Beta": "assistants=v1"
    }
    params = {
        "order": order,
        "limit": limit
    }
    response = requests.get("https://api.openai.com/v1/assistants", headers=headers, params=params)
    return response.json()
"""
Now, let's create a function to display the response with only
the "id" and "created_at" keys.
"""

def display_response(response):
    data = response.get("data", [])
    for item in data:
        print(f"id: {item['id']}, created_at: {item['created_at']}")
"""
Finally, let's demonstrate the correct operation by calling
the `get_assistants` function with different parameters
and displaying the results.
"""

if __name__ == "__main__":
    print("Order: desc")
    response_desc = get_assistants("desc", 20)
    display_response(response_desc)

    print("\nOrder: asc")
    response_asc = get_assistants("asc", 20)
    display_response(response_asc)

    print("\nLimit: 1")
    response_limit_1 = get_assistants("desc", 1)
    display_response(response_limit_1)

    print("\nLimit: 2")
    response_limit_2 = get_assistants("desc", 2)
    display_response(response_limit_2)


"""
This code will make the API calls with the specified parameters
and display the "id" and "created_at" keys,
for each item in the response.
"""

So, is it broken?

Output:

Order: desc
id: asst_jK96kUQNlhJPfi6EBs4ADMAy, created_at: 1706858490
id: asst_YCG6kGLtT5mtHmAjKKbXn8my, created_at: 1706857559

Order: asc
id: asst_YCG6kGLtT5mtHmAjKKbXn8my, created_at: 1706857559
id: asst_jK96kUQNlhJPfi6EBs4ADMAy, created_at: 1706858490

Limit: 1
id: asst_jK96kUQNlhJPfi6EBs4ADMAy, created_at: 1706858490

Limit: 2
id: asst_jK96kUQNlhJPfi6EBs4ADMAy, created_at: 1706858490
id: asst_YCG6kGLtT5mtHmAjKKbXn8my, created_at: 1706857559

Appears not. You might want to verify this topic’s claim.

++
yes, seems this is not an issue with openai. I will close this issue