You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let openai = openai::Client::from_env();
let model = openai.completion_model("gpt-4o");
let response = model
.prompt("Explain quantum computing")
.await?;
Api of completion_model has been changed in the latest version. There is no
model.promptnow.https://docs.rig.rs/docs/concepts/completion#basic-completion
Basic Completion