pub struct OpenAIImageClient(/* private fields */);Expand description
Specific OpenAI client to hit image generation endpoints.
If used as part of a crate::clients::MultiClient, it’s recommended to add this
before the standard OpenAI client to ensure it get’s priority. This is not strictly
necessary if the OpenAI client recognizes and filters the image models you use.
Implementations§
Trait Implementations§
Source§impl BotClient for OpenAIImageClient
impl BotClient for OpenAIImageClient
Source§fn bots(&self) -> BoxPlatformSendFuture<'static, ClientResult<Vec<Bot>>>
fn bots(&self) -> BoxPlatformSendFuture<'static, ClientResult<Vec<Bot>>>
Interrupt the bot’s current operation.
Bots available under this client.
Source§fn send(
&mut self,
bot_id: &BotId,
messages: &[Message],
_tools: &[Tool],
) -> BoxPlatformSendStream<'static, ClientResult<MessageContent>>
fn send( &mut self, bot_id: &BotId, messages: &[Message], _tools: &[Tool], ) -> BoxPlatformSendStream<'static, ClientResult<MessageContent>>
Send a message to a bot with support for streamed response. Read more
Source§fn clone_box(&self) -> Box<dyn BotClient>
fn clone_box(&self) -> Box<dyn BotClient>
Make a boxed dynamic clone of this client to pass around.
Source§fn content_widget(
&mut self,
_cx: &mut Cx,
_previous_widget: WidgetRef,
_templates: &HashMap<LiveId, LivePtr>,
_content: &MessageContent,
) -> Option<WidgetRef>
fn content_widget( &mut self, _cx: &mut Cx, _previous_widget: WidgetRef, _templates: &HashMap<LiveId, LivePtr>, _content: &MessageContent, ) -> Option<WidgetRef>
Optionally override how the content of a message is rendered by Makepad. Read more
Source§impl Clone for OpenAIImageClient
impl Clone for OpenAIImageClient
Auto Trait Implementations§
impl Freeze for OpenAIImageClient
impl RefUnwindSafe for OpenAIImageClient
impl Send for OpenAIImageClient
impl Sync for OpenAIImageClient
impl Unpin for OpenAIImageClient
impl UnwindSafe for OpenAIImageClient
Blanket Implementations§
§impl<T> ActionTrait for T
impl<T> ActionTrait for T
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