Skip to content

Commit

Permalink
expose config getter (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
Czechh authored Oct 17, 2023
1 parent faaa89f commit c3d670d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions async-openai/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ impl<C: Config> Client<C> {
Audio::new(self)
}

pub fn config(&self) -> &C {
&self.config
}

/// Make a GET request to {path} and deserialize the response body
pub(crate) async fn get<O>(&self, path: &str) -> Result<O, OpenAIError>
where
Expand Down

0 comments on commit c3d670d

Please sign in to comment.