neferdata / allms

allms: One Rust Library to rule them aLLMs
https://crates.io/crates/allms
Other
45 stars 6 forks source link

Simplify Assistants constructors by moving debug to a method & removing async #22

Closed kamillitman closed 6 months ago

kamillitman commented 6 months ago

Current usage:

    let concert_info = OpenAIAssistant::new(OpenAIModels::Gpt4o, &api_key, true)
        .await?;

Proposed changes:

    let concert_info = OpenAIAssistant::new(OpenAIModels::Gpt4o, &api_key)
        .debug();

The constructor no longer needs to be async also.