You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developing a generic chat program using Avalonia, and this is what it looks like when running in Debug:
However, when I publish this application using Native AOT mode, it does not send any HTTP requests, which in turn does not yield return any data, causing my application to be stuck with:
Here are some code snippets from my use of this library:
publicasyncIAsyncEnumerable<string>CreateCompletionAsStream(){if(maxTokens!=null)
request.MaxTokens = CountToken()+maxTokens;
request.Messages =Messages;varresultAsync= api.ChatCompletion.CreateCompletionAsStream(request);varresultBuilder=new StringBuilder();awaitforeach(var s in resultAsync){vartoken= s.Choices.First().Message.Content;// if (token is null) continue;yieldreturntoken;
resultBuilder.Append(token);}
AddAssistantMessage(resultBuilder.ToString());}
The program does not report any errors, it just gets stuck.
I would like to ask, is not being able to work at Native AOT something that is expected?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm developing a generic chat program using Avalonia, and this is what it looks like when running in Debug:
However, when I publish this application using Native AOT mode, it does not send any HTTP requests, which in turn does not yield return any data, causing my application to be stuck with:
Here are some code snippets from my use of this library:
The program does not report any errors, it just gets stuck.
I would like to ask, is not being able to work at Native AOT something that is expected?
I am using .NET 7.0
Beta Was this translation helpful? Give feedback.
All reactions