Adapters

Adapters#

Provider adapters expose the same interface to llmClient.js: complete, createMessage and countTokens.

  • anthropicAdapter.js: calls the Anthropic SDK.

  • openRouterAdapter.js: calls OpenRouter and normalizes the response.

  • ollamaAdapter.js: calls a local Ollama server and normalizes the response.

Files in this directory#

  • anthropicAdapter.js

  • ollamaAdapter.js

  • openRouterAdapter.js