Skip to content

Feedback for “Completion & Generation” #90

Description

@binbowang1987

Api of completion_model has been changed in the latest version. There is no model.prompt now.

https://docs.rig.rs/docs/concepts/completion#basic-completion

Basic Completion

let openai = openai::Client::from_env();
let model = openai.completion_model("gpt-4o");
 
let response = model
    .prompt("Explain quantum computing")
    .await?;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions