-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Confirm this is a Node library issue and not an underlying OpenAI API issue
- This is an issue with the Node library
Describe the bug
In this file src/resources/shared.ts, we have the following filter type:
/**
* A filter used to compare a specified attribute key to a given value using a
* defined comparison operation.
*/
export interface ComparisonFilter {
/**
* The key to compare against the value.
*/
key: string;
/**
* Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `in`,
* `nin`.
*
* - `eq`: equals
* - `ne`: not equal
* - `gt`: greater than
* - `gte`: greater than or equal
* - `lt`: less than
* - `lte`: less than or equal
* - `in`: in
* - `nin`: not in
*/
type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte';
/**
* The value to compare against the attribute key; supports string, number, or
* boolean types.
*/
value: string | number | boolean | Array<string | number>;
}
Even though the comments say that in
and nin
are supported, the type does not support it. Is that by design?
You documentation also says that the file_search tool should support the in and nin search types
To Reproduce
- Try to call the response api with file_search tool and filters
Code snippets
OS
macOs
Node version
Node 20.19.0
Library version
openai v6.3.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working