Skip to content

client.beta.threads.runs.list(threadId) Returns All Runs Instead of Filtering by threadId #89

@ddett

Description

@ddett

Description

When invoking the following code:

const runs = await client.beta.threads.runs.list(threadId);

we expect the response to include only the runs associated with the provided threadId. However, the response contains every run in the database, without filtering by the given threadId.

Steps to Reproduce

  1. Default BASE_URL:
    Do not provide a custom BASE_URL. The client will fall back to the default server provided by DataStax at:
    https://open-assistant-ai.astra.datastax.com

  2. Client Setup:
    Use a Node.js client with the "patch function".

  3. Execution:
    Run the following code snippet:

    const runs = await client.beta.threads.runs.list(threadId);
  4. Observation:
    The response contains all runs from the database, not just those associated with the provided threadId.

Expected Behavior

The API should return only the runs associated with the provided threadId.

Actual Behavior

All runs in the database are returned, ignoring the filtering by threadId.

Environment Details

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