1.4.3 • Published 8 months ago
@workflowai/api v1.4.3
workflowAI typed API client
Wrapper for workflowAI's OpenAPI specs, for node or browser
Install
npm install @workflowai/api
Initialize API
import { initWorkflowAIApi } from '@workflowai/api';
const workflowAIApi = initWorkflowAIApi({
apiKey: '...', // optional, defaults to process.env.WORKFLOWAI_API_KEY
apiUrl: '...', // optional, defaults to process.env.WORKFLOWAI_API_URL, then to https://api.workflowai.com
use: [], // optional, fetch middlewares
});
Call endpoints
const { data: list } = await workflowAIApi.models.list();
console.log(list.models[0].providers[0].name);
const { data: run } = await workflowaiApi.runs.annotate({
run_id: '1',
score: 1,
});
console.log(run.scores);
1.4.3
8 months ago
1.4.2
8 months ago
1.4.1
8 months ago
1.4.0
8 months ago
1.3.6-alpha.0
10 months ago
1.3.5
10 months ago
1.3.4
12 months ago
1.3.3
12 months ago
1.3.2
1 year ago
1.3.1
1 year ago
1.3.0
1 year ago
1.2.0
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago
0.1.0
1 year ago