struct

Crig::Providers::OpenAI::CompletionsClient

Inherits Crig::Client::CompletionClient < Struct < Value < Object

Constructors

from_env
Source
from_val(input : Crig::BearerAuth) : self
Source
new(api_key : Crig::BearerAuth, base_url : String = OPENAI_API_BASE_URL)
Source
new(api_key : String, base_url : String = OPENAI_API_BASE_URL) : self
Source

Class methods

builder
Source

Instance methods

api_key
Source
base_url
Source
post_json(path : String, body : String, headers : Hash(String, String) = {} of String => String) : HTTP::Client::Response
Source
responses_api
Source