TS/JS
Installation
Usage
Create API Client
Create an API client with baseURL:
Create an API client with API key and project id:
The default base URL is set to http://api.jamaibase.com/
Create an API client with custom HTTP client:
Create an API client with max-retry and timeout:
Configure httpAgent / httpsAgent
Imports
Can be imported from different modules depending on the need:
Types
Types can be imported from resources:
Using the Client
Example of adding a row to an action table:
Example of adding row with streaming output:
Constructor Parameters for APIClient Configuration
baseURL
string
Base URL for the API request.
false
maxRetries
number
Maximum number of retries for failed requests.
0
false
httpClient
AxiosInstance
Axios instance for making HTTP requests.
AxiosInstance
false
timeout
number | undefined
Timeout for the requests.
undefined
false
apiKey
string | undefined
apiKey.
undefined
required if accessing cloud
projectId
string | undefined
projectId.
undefined
required if accessing cloud
dangerouslyAllowBrowser
boolean
Allowing the insecure usage of JamAI API Key on client side.
false
false
Quick Start Guide
Go to our quick start section to integrate JamAI into your favorite framework.
SDK
The complete SDK Documentation link can be found at https://embeddedllm.github.io/jamaibase-ts-docs/ TS/JS
Last updated
Was this helpful?