openai-api
openai-api copied to clipboard
A simple Rust library for OpenAI API, free from complex async operations and redundant dependencies.
Hello, This PR: 1) Addresses the warning `warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.18.0, traitobject v0.1.0` 2)...
I don't know if there's another crate for this, but https://github.com/abonander/multipart is not a public archive and it might be a good idea to use another more stable crate, if...
https://platform.openai.com/docs/api-reference/embeddings/create There is now an option for controlling the encoding format, and for the new v3 models, the dimensions of the vector. But the `EmbeddingsBody` doesn't have it ``` #[derive(Debug,...
Hi, Is there any plan to support the [BETA assistant API](https://platform.openai.com/docs/api-reference/assistants) ? Thanks
When a map of type HashMap is passed for logit_bias, the following error results: ``` Error: API error: {"error":{"code":null,"message":"All values in 'logit_bias' must be reals, but found a ","param":"logit_bias","type":"invalid_request_error"}}. Trying...
can you add support for wasm (`wasm32-unknown-unknown`)? thanks
Thanks for the project. It's delightfully simple and a pleasure to use. Currently, Messages take a role and a string for the content. When it comes to vision though I...
Can you tell us the advantages over the existing library? https://github.com/64bit/async-openai
Ref: - https://platform.openai.com/docs/api-reference/images/object - https://github.com/openai/openai-openapi/blob/440c1718f0ea39d32d3735018cbcd6785a93db79/openapi.yaml#L10199-L10208 As per the OpenAI spec, these fields are always non-optional and always returned as a potentially-empty string. In practice, other providers (like LocalAI) only return...
Ref: https://platform.openai.com/docs/api-reference/images/create `model` is especially useful even when using this library against other OpenAI-compatible services which offer other models (e.g. `stablediffusion`).