Перейти к основному содержимому
F

dsh-ai-providers (dsh-ai-providers)

firefox2100/dsh-ai-providers/packages/dsh-ai-providers

AI provider runtime and configuration UI for shared credentials and embedding, reranking, speech, and image generation services in DSH.

Установка

dsh plugin --profile web add github:firefox2100/dsh-ai-providers

Этот плагин находится в подкаталоге packages/dsh-ai-providers репозитория.

README

DSH AI Providers

Reusable, provider-neutral AI services for DeepSeek Harness.

English | 简体中文

DSH AI Providers is infrastructure for plugins that need AI capabilities beyond a single model backend. Users register a vendor connection and credential once, then reuse it for every capability that vendor supplies. Consumer plugins call stable services instead of implementing credentials, provider selection, concurrency control, and vendor APIs themselves.

It currently covers:

  • language models;
  • embeddings and reranking;
  • text-to-speech and speech-to-text;
  • image generation.

The project is primarily useful to plugin developers and to users of plugins built on it. Installing it alone does not add an assistant or start making AI requests: configure the providers you need, then install or build a plugin that consumes the services.

Why use it

  • Configure a connection and DSH-managed credential once instead of repeating secrets in every feature or plugin.
  • Let users choose or change providers without coupling consumer plugins to vendor-specific APIs.
  • Share capability contracts, live configuration, and concurrency limits across plugins.
  • Retain vendor-specific controls where a common interface would otherwise hide useful behavior.

The provider-neutral contracts are the foundation. A provider can be added behind those contracts without requiring each consumer plugin to add another vendor transport.

How it fits together

consumer plugin
      |
      v
@dsh-ai-providers/core contracts
      |
      v
@dsh-ai-providers/runtime
      |
      +-- OpenAI-compatible
      +-- LocalAI
      +-- Anthropic
      +-- Jina/Cohere-compatible reranking

Consumer plugins depend on the contracts, not a particular vendor package. The runtime exposes the provider selected in the profile and applies shared concurrency controls. Provider packages keep ownership of their connections, request defaults, and vendor-specific settings.

Documentation

Packages

PackagePurpose
@dsh-ai-providers/coreProvider-neutral service contracts, errors, and shared types
@dsh-ai-providers/openai-compatibleReusable OpenAI-compatible wire transports; not a plugin
@dsh-ai-providers/runtimeProvider registry, service selection, concurrency control, API routes, and settings UI
@dsh-ai-providers/openaiOpenAI-compatible language models, embeddings, TTS, file and live STT, and image generation
@dsh-ai-providers/localaiLocalAI language models, embeddings, reranking, TTS, file and live STT, and image generation
@dsh-ai-providers/anthropicLanguage models through Anthropic's native Messages API
@dsh-ai-providers/jina-cohereReranking through Jina- and Cohere-compatible APIs
@dsh-ai-providers/allMetadata-only DSH bundle containing the runtime and every provider maintained by this project

See the individual provider guides for configuration and supported features:

Installation

DSH AI Providers requires Node.js 22 or later and currently targets DSH >=0.2.0-rc.2 <0.3.0.

Install the bundle into a DSH profile:

dsh plugin --profile <profile> add @dsh-ai-providers/all

The bundle installs the runtime and all provider packages maintained by this project. Restart the profile, then configure connections, routes, and active services under Settings > AI Providers. Individual packages may also be installed separately for a custom deployment.

To use these language-model routes in place of DSH's stock routes, disable @deepseek-ai/dsh-llm-pi-ai and the stock ui-settings-models settings page in that profile. Keep DSH's core llm service enabled. For DSH Voice Input, keep its speech-to-text registry enabled but select the API-backed provider instead of the built-in SenseVoice provider.

This is an independent project maintained by Firefox2100. It is not an official DeepSeek Harness project and is not maintained or endorsed by the DSH maintainers.

For plugin developers

Consumer plugins normally add @dsh-ai-providers/core as a dependency and request the services they use from the Cordis context. Provider authors implement the same contracts and register their capabilities with the runtime.

Start with Using services for a consumer integration, or Creating a provider for a new backend. The core contract reference documents lifecycle rules, errors, and request types.

Development

Requires Node.js 22 or later and pnpm.

pnpm install
pnpm run typecheck
pnpm run test
pnpm run build
pnpm run release:check

See Contributing for branch and release policy.

License

GPL-3.0-only

Похожие плагины