openai-api-rust icon indicating copy to clipboard operation
openai-api-rust copied to clipboard

Rust client for OpenAI API

Results 10 openai-api-rust issues
Sort by recently updated
recently updated
newest added

The `complete` method no longer exists. Wanted to fix that so that it's up to date

👋🏼 Hi, I've been playing around with this crate and realised that the lastest released version is [0.1.4](https://crates.io/crates/openai-api/0.1.4). Version [0.1.5-alpha.0](https://github.com/deontologician/openai-api-rust/pull/10) fixes an issue I have with the API, namely I...

The Surf `hyper-client` feature requires tokio 0.2.x, but 1.0 has been released for a long time. This changes to use the surf `h1-feature` instead, which is built on top of...

Hi there! I tried using the `CompletionArgs` builder and tried using it in `complete_prompt` like in the example but I'm receiving this error: ``` the trait bound `CompletionArgs: From` is...

# What corrected `complete()` to `complete_prompt()` # Why Incorrect method name: ``` error[E0599]: no method named `complete` found for struct `Client` in the current scope --> src/main.rs:11:16 | 11 |...

I was wondering if "edits" are possible see https://beta.openai.com/docs/api-reference/edits

Are you open to PRs? :)

Currently a couple of the apis talk in tokens, which is inconvenient. It would be nice if you could translate text into tokens and vise-versa easily. The [rust_tokenizer][] crate has...

They're available here and have a very regular shape: https://github.com/openai/openai-python/tree/main/openai/api_resources Since the shape is pretty predictable, probably don't need to actually execute python and introspect, could just use a crate...

enhancement