async-openai icon indicating copy to clipboard operation
async-openai copied to clipboard

Rust library for OpenAI

Results 110 async-openai issues
Sort by recently updated
recently updated
newest added

This MR highlights a minimal example to solve the issue raised in #297

Currently the example only sends text, make it send audio too via `ClientEvent` in `server_vad` mode.

help wanted
good first issue

- will need to process [response.function_call_arguments.done](https://platform.openai.com/docs/api-reference/realtime-server-events/response-function-call-arguments-done) and create corresponding `conversation.item.create` to submit tool output.

help wanted
good first issue

Currently `examples/realtime` only prints text, make it play the audio received via `ServerEvent`.

help wanted
good first issue

I'm curious if you are planning to add support for the OpenAI realtime API? That would also be very useful :)

enhancement

Current version: async-openai = "0.31.0-alpha.6" I am trying out function calling with the responses API and the library throws this error: ``` Caused by: failed to deserialize api response: error:missing...

When using the `backoff::future::retry`, we can attempt to parse and use the `Retry-After` header value.

I am trying some of the test code. In each case, I get the error: `Error: JSONDeserialize(Error("expected value", line: 8, column: 1))` Example: ``` let response = client.chat().create(request).await?; OR let...

There is an open issue in event source - https://github.com/jpopesculian/reqwest-eventsource/issues/15 Where it treats stream ending as error, that bubbles up through async openai crate. This error never seemed to have...

References #448 In the issue, the idea of exposing a `serde_json::Value` was discussed. In some internal server error cases, even `OpenAI` does return error messages that are not json. This...