Skip to content

hedging8563/tokenlab-native-endpoints-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TokenLab Native Endpoints Examples

Public contract

Copyable examples for TokenLab native endpoint families beyond generic OpenAI-compatible chat.

Setup

cp .env.example .env
export TOKENLAB_API_KEY=sk-your-tokenlab-key
npm install
npm test

Examples

  • examples/chat-completions.mjs
  • examples/responses.mjs
  • examples/anthropic-messages.mjs
  • examples/gemini-generate-content.mjs
  • examples/list-models.mjs

Compatibility Check

npm run verify:contract checks the live OpenAPI document for Chat Completions, Responses, Anthropic Messages, Gemini generateContent, and model discovery, then verifies the example model IDs against the public catalog. GitHub Actions repeats this check daily.

Links

About

TokenLab examples for Chat Completions, Responses, Anthropic Messages, and Gemini

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors