Skip to content

XidaoApi/xidao-nodejs-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

XiDao Node.js Examples

OpenAI-compatible Node.js / TypeScript examples for developers who want lower AI API costs with minimal migration work.

Quickstart

npm install
export XIDAO_API_KEY="***"
node examples/chat.js

What changes from OpenAI?

Usually only:

  • apiKey
  • baseURL
  • model

Included examples

  • examples/chat.js
  • examples/stream.js
  • examples/simple-chatbot.js

Related guides

  • ../xidao-cookbook/guides/migrate-from-openai.md
  • ../xidao-cookbook/guides/openai-compatible-rollout-checklist.md
  • ../xidao-cookbook/guides/reduce-api-costs.md

Links

About

OpenAI-compatible Node.js/TypeScript examples — streaming chat, Vercel AI SDK integration, endpoint migration, and multi-provider switching. Works with any OpenAI-compatible API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors