Crate kind_openai

Source
Expand description

An opinionated wrapper around the OpenAI API. This does not support all endpoints, and is not automatically generated.

Re-exports§

Modules§

Macros§

Structs§

Traits§

  • Any type that can provide a bearer auth token.
  • Any type that can be used as a structured chat completion.
  • A subordinate type that can be used as a field in an OpenAI schema but not as the schema itself. (enums and eventually structs when supported using $ref). This is still derived by OpenAISchema, so for all intents and purposes you can pretend that this type doesn’t exist.

Derive Macros§

  • Places an associated function on a struct that returns an &'static str containing its OpenAI-compatible JSON schema.