Skip to content

Commit

Permalink
docs: async and sync method comments (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jan 26, 2025
1 parent 4344883 commit 6f11e5d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ import com.openai.services.blocking.UploadService
*/
interface OpenAIClient {

/**
* Returns a version of this client that uses asynchronous execution.
*
* The returned client shares its resources, like its connection pool and thread pools, with
* this client.
*/
fun async(): OpenAIClientAsync

fun completions(): CompletionService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ import com.openai.services.async.UploadServiceAsync
*/
interface OpenAIClientAsync {

/**
* Returns a version of this client that uses synchronous execution.
*
* The returned client shares its resources, like its connection pool and thread pools, with
* this client.
*/
fun sync(): OpenAIClient

fun completions(): CompletionServiceAsync
Expand Down

0 comments on commit 6f11e5d

Please sign in to comment.