FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: Neuralwatt provider by amitksingh1490 · Pull Request #3608 · tailcallhq/forgecode · GitHub

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

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 Bot added type: feature Brand new functionality, features, pages, workflows, endpoints, etc. type: provider Updates provider.json configuration. labels Jul 1, 2026
amitksingh1490 marked this pull request as draft July 1, 2026 13:26
amitksingh1490 changed the title feat: add Neuralwatt provider fix: Neuralwatt provider Jul 1, 2026
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 marked this pull request as ready for review July 1, 2026 13:33
amitksingh1490 merged commit 7ec7212 into main Jul 1, 2026
8 checks passed
amitksingh1490 deleted the add-neuralwatt-provider branch July 1, 2026 13:33
KooshaPari added a commit to KooshaPari/forgecode that referenced this pull request Jul 3, 2026
* chore(deps): update rust crate config to v0.15.25 (tailcallhq#3574)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @ai-sdk/google-vertex to v5.0.1 (tailcallhq#3575)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency ai to v7.0.3 (tailcallhq#3576)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate posthog-rs to v0.14.2 (tailcallhq#3577)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @ai-sdk/google-vertex to v5.0.2 (tailcallhq#3578)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency ai to v7.0.4 (tailcallhq#3579)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate open to v5.3.6 (tailcallhq#3587)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate indicatif to v0.18.5 (tailcallhq#3589)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate posthog-rs to 0.15.0 (tailcallhq#3590)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @ai-sdk/google-vertex to v5.0.3 (tailcallhq#3593)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency ai to v7.0.6 (tailcallhq#3594)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @ai-sdk/google-vertex to v5.0.4 (tailcallhq#3601)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency ai to v7.0.8 (tailcallhq#3597)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate posthog-rs to v0.15.1 (tailcallhq#3602)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore:  Claude Sonnet 5 to all providers (tailcallhq#3604)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* chore(deps): update dependency @ai-sdk/google-vertex to v5.0.5 (tailcallhq#3605)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency ai to v7.0.9 (tailcallhq#3606)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate clap_complete to v4.6.6 (tailcallhq#3607)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix: Neuralwatt provider (tailcallhq#3608)

* chore(deps): update rust crate console to v0.16.4 (tailcallhq#3609)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @ai-sdk/google-vertex to v5.0.7 (tailcallhq#3612)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency ai to v7.0.11 (tailcallhq#3613)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @ai-sdk/google-vertex to v5.0.8 (tailcallhq#3617)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate clap_complete to v4.6.7 (tailcallhq#3618)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate ignore to v0.4.27 (tailcallhq#3610)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate indicatif to v0.18.6 (tailcallhq#3619)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update rust crate rand to v0.10.2 (tailcallhq#3621)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update rust crate posthog-rs to 0.17.0 (tailcallhq#3620)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency csv-parse to v7.0.1 (tailcallhq#3625)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency tsx to v4.22.5 (tailcallhq#3626)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @ai-sdk/google-vertex to v5.0.10 (tailcallhq#3627)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency ai to v7.0.14 (tailcallhq#3628)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(sync): regenerate Cargo.lock after upstream merge (resolves cleanly)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Amit Singh <amitksingh1490@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: KooshaPari <koosha@example.com>
M1lan pushed a commit to M1lan/forgecode that referenced this pull request Jul 9, 2026
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

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


Back | FazBrowse Home | New Git URL