refactor for better support of streaming and etc ...

This commit is contained in:
2026-09-26 10:46:14 +03:30
parent 9afa413c6f
commit ed8a66f432
6 changed files with 132 additions and 136 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ namespace xAiApi.Interfaces
/// <param name="prompt"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
Task<string> AskAsync(
Task<string> AskTextAsync(
string prompt,
CancellationToken cancellationToken = default
);
@@ -29,7 +29,7 @@ namespace xAiApi.Interfaces
/// <param name="prompt"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
IAsyncEnumerable<string> AskAsEnumerable(
IAsyncEnumerable<string> AskTextAsEnumerable(
string prompt,
CancellationToken cancellationToken = default
);