Skip to content

Commit 839ff51

Browse files
authored
Merge pull request #30 from spiceai/jeadie/pub
Make underlying function public, so to be used by non-openai providers
2 parents 7321ec9 + 70e0ec0 commit 839ff51

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

async-openai/src/client.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,7 @@ impl<C: Config> Client<C> {
354354
}
355355

356356
/// Make a POST request to {path} and deserialize the response body
357-
#[allow(unused)]
358-
pub(crate) async fn post<I, O>(
357+
pub async fn post<I, O>(
359358
&self,
360359
path: &str,
361360
request: I,
@@ -564,8 +563,7 @@ impl<C: Config> Client<C> {
564563
}
565564

566565
/// Make HTTP POST request to receive SSE
567-
#[allow(unused)]
568-
pub(crate) async fn post_stream<I, O>(
566+
pub async fn post_stream<I, O>(
569567
&self,
570568
path: &str,
571569
request: I,

0 commit comments

Comments
 (0)