pub struct OpenAI { /* private fields */ }Implementations§
Source§impl OpenAI
impl OpenAI
Sourcepub fn with_options(options: ClientOptions) -> Result<Self>
pub fn with_options(options: ClientOptions) -> Result<Self>
使用完整选项创建客户端并完成配置归一化。
pub fn responses(&self) -> Responses
pub fn chat(&self) -> Chat
pub fn models(&self) -> Models
pub fn embeddings(&self) -> Embeddings
pub fn files(&self) -> Files
pub fn moderations(&self) -> Moderations
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpenAI
impl !RefUnwindSafe for OpenAI
impl Send for OpenAI
impl Sync for OpenAI
impl Unpin for OpenAI
impl UnsafeUnpin for OpenAI
impl !UnwindSafe for OpenAI
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more