|
865 | 865 | ([params options]
|
866 | 866 | (let [opts (assoc-in options [:openai-beta] ASSISTANTS_HTTP_HEADER_STR)]
|
867 | 867 | (core/response-for :create-thread-and-run params opts))))
|
| 868 | + |
| 869 | + |
| 870 | +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 871 | +;; Vector stores (beta) |
| 872 | +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 873 | + |
| 874 | +(defn create-vector-store |
| 875 | + "Create a vector store. |
| 876 | +
|
| 877 | + Example: |
| 878 | + ``` |
| 879 | + (create-vector-store {:name \"Support FAQ\" :file-ids [\"file-id-123\"]}) |
| 880 | + ``` |
| 881 | +
|
| 882 | + Also see the [OpenAI documentation](https://platform.openai.com/docs/api-reference/vector-stores/create) |
| 883 | + " |
| 884 | + ([params] |
| 885 | + (create-vector-store params nil)) |
| 886 | + ([params options] |
| 887 | + (let [opts (assoc-in options [:openai-beta] ASSISTANTS_HTTP_HEADER_STR)] |
| 888 | + (core/response-for :create-vector-store params opts)))) |
| 889 | + |
| 890 | +(defn list-vector-stores |
| 891 | + "Returns a list of vector stores. |
| 892 | +
|
| 893 | + Example: |
| 894 | + ``` |
| 895 | + (list-vector-stores {:limit 1}) |
| 896 | + ``` |
| 897 | + Also see the [OpenAI documentation](https://platform.openai.com/docs/api-reference/vector-stores/list) |
| 898 | + " |
| 899 | + ([params] |
| 900 | + (list-vector-stores params nil)) |
| 901 | + ([params options] |
| 902 | + (let [opts (assoc-in options [:openai-beta] ASSISTANTS_HTTP_HEADER_STR)] |
| 903 | + (core/response-for :list-vector-stores params opts)))) |
| 904 | + |
| 905 | +(defn retrieve-vector-store |
| 906 | + "Retrieves a vector store. |
| 907 | +
|
| 908 | + Example: |
| 909 | + ``` |
| 910 | + (retrieve-vector-store {:vector_store_id \"vs_abc123\"}) |
| 911 | + ``` |
| 912 | + Also see the [OpenAI documentation](https://platform.openai.com/docs/api-reference/vector-stores/retrieve) |
| 913 | + " |
| 914 | + ([params] |
| 915 | + (retrieve-vector-store params nil)) |
| 916 | + ([params options] |
| 917 | + (let [opts (assoc-in options [:openai-beta] ASSISTANTS_HTTP_HEADER_STR)] |
| 918 | + (core/response-for :get-vector-store params opts)))) |
| 919 | + |
| 920 | +(defn modify-vector-store |
| 921 | + "Modifies a vector store. |
| 922 | +
|
| 923 | + Example: |
| 924 | + ``` |
| 925 | + (modify-vector-store {:vector_store_id \"vs_abc123\" :name \"Support FAQ\"}) |
| 926 | + ``` |
| 927 | + Also see the [OpenAI documentation](https://platform.openai.com/docs/api-reference/vector-stores/modify) |
| 928 | + " |
| 929 | + ([params] |
| 930 | + (modify-vector-store params nil)) |
| 931 | + ([params options] |
| 932 | + (let [opts (assoc-in options [:openai-beta] ASSISTANTS_HTTP_HEADER_STR)] |
| 933 | + (core/response-for :modify-vector-store params opts)))) |
| 934 | + |
| 935 | +(defn delete-vector-store |
| 936 | + "Deletes a vector store. |
| 937 | +
|
| 938 | + Example: |
| 939 | + ``` |
| 940 | + (delete-vector-store {:vector_store_id \"vs_abc123\"}) |
| 941 | + ``` |
| 942 | + Also see the [OpenAI documentation](https://platform.openai.com/docs/api-reference/vector-stores/delete) |
| 943 | + " |
| 944 | + ([params] |
| 945 | + (delete-vector-store params nil)) |
| 946 | + ([params options] |
| 947 | + (let [opts (assoc-in options [:openai-beta] ASSISTANTS_HTTP_HEADER_STR)] |
| 948 | + (core/response-for :delete-vector-store params opts)))) |
0 commit comments