refactor for better support of streaming and etc ...
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user