Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ddett opened this issue Feb 21, 2025 · 0 comments

Comments

@ddett
Copy link

ddett commented Feb 21, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant