Function use_chat
Source pub fn use_chat(options: ChatOptions) -> UseChatState
Expand description
Create a reactive chat interface
§Example
ⓘlet mut chat = use_chat(ChatOptions {
provider: "openai".to_string(),
api_key: "sk-...".to_string(),
model: "gpt-4o-mini".to_string(),
..Default::default()
});
chat.send("Hello!");