Skip to content

fix: Neuralwatt provider#3608

Merged
amitksingh1490 merged 2 commits into
mainfrom
add-neuralwatt-provider
Jul 1, 2026
Merged

fix: Neuralwatt provider#3608
amitksingh1490 merged 2 commits into
mainfrom
add-neuralwatt-provider

Conversation

@amitksingh1490

Copy link
Copy Markdown
Contributor

Summary

Adds Neuralwatt as a built-in OpenAI-compatible LLM provider.

Neuralwatt Cloud exposes OpenAI-compatible endpoints at https://api.neuralwatt.com/v1, so it plugs in as a standard OpenAI response-type provider.

Changes

  • crates/forge_domain/src/provider.rs: register ProviderId::NEURALWATT (constant, FromStr, built_in_providers(), and display name Neuralwatt).
  • crates/forge_repo/src/provider/provider.json: add the neuralwatt provider entry
    • chat URL: https://api.neuralwatt.com/v1/chat/completions
    • models URL: https://api.neuralwatt.com/v1/models
    • API key var: NEURALWATT_API_KEY
  • crates/forge_repo/src/provider/provider_repo.rs: add test_neuralwatt_config unit test.
  • README.md: document NEURALWATT_API_KEY.

Testing

  • cargo build
  • cargo test -p forge_domain neuralwatt ✅ (3 passing)
  • cargo test -p forge_repo neuralwatt ✅ (1 passing)
  • Manual CLI verification (debug-cli skill):
    • forge list provider shows Neuralwatt (host api.neuralwatt.com)
    • Ran a live chat completion against neuralwatt/glm-5.2-fast with a test key — model correctly replied PONG.

Add Neuralwatt as a built-in OpenAI-compatible provider.

- Register NEURALWATT ProviderId (constant, from_str, built_in list, display name)
- Add neuralwatt entry to provider.json (base URL https://api.neuralwatt.com/v1)
- Add unit tests for provider id and provider config
- Document NEURALWATT_API_KEY in README

Docs: https://portal.neuralwatt.com/docs/api/overview
@github-actions github-actions Bot added type: feature Brand new functionality, features, pages, workflows, endpoints, etc. type: provider Updates provider.json configuration. labels Jul 1, 2026
@amitksingh1490
amitksingh1490 marked this pull request as draft July 1, 2026 13:26
@amitksingh1490 amitksingh1490 changed the title feat: add Neuralwatt provider fix: Neuralwatt provider Jul 1, 2026
@amitksingh1490 amitksingh1490 added type: fix Iterations on existing features or infrastructure. and removed type: feature Brand new functionality, features, pages, workflows, endpoints, etc. labels Jul 1, 2026
Neuralwatt's /v1/models endpoint returns a non-standard schema (model
metadata nested under a 'metadata' object), which does not map cleanly to
the OpenAI-compatible model list parser. Hardcode all 11 models with their
full metadata (context length, tool support, reasoning, modalities) instead
of fetching from the URL.

Models were generated programmatically from the live API response to avoid
missing any model or metadata.
@amitksingh1490
amitksingh1490 marked this pull request as ready for review July 1, 2026 13:33
@amitksingh1490
amitksingh1490 merged commit 7ec7212 into main Jul 1, 2026
8 checks passed
@amitksingh1490
amitksingh1490 deleted the add-neuralwatt-provider branch July 1, 2026 13:33
M1lan pushed a commit to M1lan/forgecode that referenced this pull request Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Iterations on existing features or infrastructure. type: provider Updates provider.json configuration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant