Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Crig::Providers::ZAI::Client
Inherits
Crig::Client::CompletionClient
<
Struct
<
Value
<
Object
Constructors
from_env
Source
from_val
(input :
String
) : self
Source
new
(api_key :
String
, base_url :
String
=
GENERAL_API_BASE_URL
)
Source
Class methods
builder
Source
Instance methods
api_key
Source
base_url
Source
build_uri
(path :
String
) :
String
Source
completion_model
(model :
String
) :
CompletionModel
Source
post_json
(path :
String
, body :
String
, headers :
Hash
(
String
,
String
) = {} of
String
=>
String
) :
HTTP::Client::Response
Source