Crate openai_req

source ·



  • structure returned by OpenAI for errors
  • common response used by multiple delete API-s
  • common error type used by api client traits, wraps underlying reqwest::Error, but also tries to provide response body, so error is easier to debug
  • This is main client structure required for all requests. It is passed as a reference parameter into all API operations. It is also holds actual reqwest::Client http client, that performs requests.
  • common struct that comes up in responses


  • enum used by different requests, it is common for apis ot take either single string or array of tokens