Documentation

AiApiInterface

Base class to ensure common functions for API tooling

Table of Contents

Methods

getEndpoints()  : array<string|int, mixed>
Get a list of endpoints available for use with this class
getLastRequestCost()  : mixed
Get the cost of the last request
getRequestCostUnit()  : string
Describe what the cost unit is for this system (e.g. dollars, tokens)
getUsable()  : bool
Class specific check to see if we can use AI. E.g. do we have a key?

Methods

getEndpoints()

Get a list of endpoints available for use with this class

public getEndpoints() : array<string|int, mixed>
Return values
array<string|int, mixed>

getLastRequestCost()

Get the cost of the last request

public getLastRequestCost() : mixed

getRequestCostUnit()

Describe what the cost unit is for this system (e.g. dollars, tokens)

public getRequestCostUnit() : string
Return values
string

getUsable()

Class specific check to see if we can use AI. E.g. do we have a key?

public getUsable() : bool
Return values
bool
On this page

Search results