Open
Conversation
Made-with: Cursor
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new native hpc-ai provider to the Gateway with OpenAI-compatible /chat/completions support, wiring it through provider registration, model catalog, local console UI, and documentation.
Changes:
- Implement
hpc-aiprovider configuration (base URL, auth header, endpoint mapping, response + stream chunk transforms). - Register
hpc-aiacross the gateway (providers index,VALID_PROVIDERS), add HPC-AI models tomodels.json, and add integration-test variables. - Update local Gateway Console UI and docs (README + JP README) to expose/select HPC-AI.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/tests/resources/testVariables.ts | Adds hpc-ai env var hook-up for integration tests. |
| src/public/index.html | Adds HPC-AI to provider dropdown plus model/docs maps in the local console. |
| src/providers/index.ts | Registers the new hpc-ai provider config. |
| src/providers/hpc-ai/index.ts | New provider entry-point wiring API + transforms. |
| src/providers/hpc-ai/chatComplete.ts | New chat completion request config and response/stream transforms with provider tagging. |
| src/providers/hpc-ai/api.ts | New base URL resolution (customHost/env/default), auth header, and endpoint mapping. |
| src/globals.ts | Adds HPC_AI constant and registers it in VALID_PROVIDERS. |
| src/data/models.json | Adds two HPC-AI models to the global model list. |
| README.md | Adds HPC-AI to supported providers and documents usage/overrides. |
| .github/README.jp.md | Adds HPC-AI to the Japanese supported providers table. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Author
|
@narengogi could you please review this & docs? |
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.
Description: (required)
hpc-aiwith OpenAI-compatible chat completions: default base URLhttps://api.hpc-ai.com/inference/v1,Authorization: Bearer, endpoints/chat/completions(non-stream + stream), response transforms for OpenAI-style errors, optional FastAPI-styledetailerrors, andprovidertagging on success/stream chunks.custom_host/x-portkey-custom-host, and envHPC_AI_BASE_URLaftercustomHost; documentHPC_AI_API_KEY/HPC_AI_BASE_URLin.env.exampleand integration test vars intestVariables.ts.HPC_AIinVALID_PROVIDERS; add modelsminimax/minimax-m2.5andmoonshotai/kimi-k2.5tomodels.jsonunder providerhpc-ai.public/index.html): provider option,modelMap/docsMapfor HPC-AI.Tests Run/Test cases added: (required)
npm run build— passednpm run format:check— passednpm run test:gatewayhas pre-existing failures unrelated to this change in this environment)Type of Change: