How propperly to use new api for listing assistants. I'm trying to update to latest package version, but for me it's silently failing on listing assistant function #292
-
hey. var apiClient = new OpenAIClient(new OpenAIAuthentication(ApiKey,Organization));
try
{
var assistantsList = await apiClient.AssistantsEndpoint.ListAssistantsAsync();
return assistantsList;
}
catch (Exception ex)
{
Debug.LogError($"Error fetching assistants: {ex}");
throw ex;
} With the code above it's just silently failing. without any "exceptions" or errors. It was working for me with pakcgae version 8.1.1 just fine. So, I was testing around, trying to get any error out of it. OpenAIAuthentication auth = new OpenAIAuthentication(ApiKey,Organization);
OpenAISettings settings = new OpenAISettings();
var apiClient = new OpenAIClient(auth, settings); then I get error. i assume the same eror is happening as well in my previous code, but for some reson it just fails silently... here is the error i get, it's related to deserialization:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 41 replies
-
are you using old v1 assistants? They are not compatible afaik |
Beta Was this translation helpful? Give feedback.
Ok lets see if 8.2.5 fixed it for you.