Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.08 KB

File metadata and controls

41 lines (26 loc) · 1.08 KB

XiDao Node.js Examples

License: MIT GitHub release GitHub stars

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