Add Forge embeddings provider#12542
Open
JCorners68 wants to merge 2 commits into
Open
Conversation
Forge is an OpenAI-compatible embeddings API from Voxell. Mirrors the existing Voyage/Scaleway/Tensorix providers. Embeddings-only — the OpenAI base class _embed() handles the embedding path, so no custom logic is needed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Forge is embeddings-only like Scaleway; mirror Scaleway's presence in both the modelDescription and embeddingsProvider enums of @continuedev/config-types so config.json editor validation recognizes the provider. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a named
forgeembeddings provider. Forge (by Voxell) is an OpenAI-compatible embeddings API, so this mirrors the existing Voyage/Scaleway/Tensorix providers rather than introducing any custom logic — theOpenAIbase class's_embed()handles the embedding path.Forge is embeddings-only (no chat/autocomplete), so this follows the embeddings-provider precedent set by #3288 (Scaleway). No edits were made to
core/llm/autodetect.ts(chat-only maps; Voyage/Scaleway are absent there too).Provider details
https://api.voxell.ai/v1/Authorization: Bearer <key>forge-turbo(1024d),forge-pro(2560d, default),forge-ultra-4k(4096d); OpenAI aliases also accepted;dimensionssupportedChanges
core/llm/llms/Forge.ts—class Forge extends OpenAI(mirrorsTensorix.ts)core/llm/llms/index.ts— import + register inLLMClassespackages/openai-adapters/src/index.ts+types.ts—openAICompatible(...)case + provider literalcore/control-plane/schema.ts—forgeinmodelDescriptionSchemaandembeddingsProviderSchemapackages/config-types/src/index.ts—forgein both provider enums (matching Scaleway)gui/src/pages/AddNewModel/configs/providers.ts—forgeblock (mirrorstensorix)docs/customize/model-providers/more/forge.mdx+docs/docs.jsonnavpackages/llm-info/src/providers/forge.ts+ registered inindex.tspackages/openai-adapters/src/test/main.test.ts— config test (apiBase/apiKey), mirroring the Inception caseNotes
extensions/vscode/config_schema.jsonis left untouched. There's no generator that writes it from these schemas in the tree (the prepackage scripts only copy it), and hand-editing it is out of scope — so it's intentionally not modified here.How tested
packages/openai-adapters:npm run build(tsc) clean; new Forge config test passes (vitest run).packages/llm-infoandpackages/config-types:npm run build(tsc) clean.core: the changed files introduce no new type errors (baseline vs. branchtsc --noEmiterror counts are identical; remaining errors are pre-existing workspace-link resolution unrelated to this change).Summary by cubic
Adds a new OpenAI-compatible embeddings provider: Forge (Voxell). Lets users configure
forge-turbo,forge-pro(default), andforge-ultra-4kfor embeddings via the existing OpenAI path.Forgeprovider extendingOpenAIwith defaults: apiBasehttps://api.voxell.ai/v1/, modelforge-pro, batch size 128.packages/openai-adapters(constructLlmApi) as an OpenAI-compatible endpoint.forgeto embeddings/model schemas incore/control-planeandpackages/config-types.packages/llm-infonow lists Forge and its models.packages/openai-adapters.Written for commit 811618d. Summary will update on new commits.