com.openai.unity 8.0.1 #247
Locked
StephenHodgson
announced in
Announcements
Replies: 1 comment 2 replies
-
Hey, @StephenHodgson ! Thank you for update of the package! It's really great to have v2 version. Could you please give a tip? Here is how I get "vector id" of "file id" my assistant has. Is there some better way to do it? var storeList = await api.VectorStoresEndpoint.ListVectorStoresAsync();
foreach (var vectorStore in storeList.Items)
{
var vectorStoreId = vectorStore.Id;
var filesResponse = await api.VectorStoresEndpoint.ListVectorStoreFilesAsync(vectorStoreId);
var files = filesResponse.Items;
if (files.Any(file => file.Id == fileId))
{
// This vector store contains your file
// Now you have the vector store id (vectorStoreId) that contains your file
}
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What's Changed
Full Changelog: 8.0.0...8.0.1
This discussion was created from the release com.openai.unity 8.0.1.
Beta Was this translation helpful? Give feedback.
All reactions