Repository navigation
feat(providers): add Phala - #11447
Open
kingsleydon wants to merge 1 commit into
Open
kingsleydon wants to merge 1 commit into
kingsleydon wants to merge 1 commit into
Conversation
kingsleydon
marked this pull request as draft
October 25, 2026 07:03
Contributor
Action items
|
kingsleydon
force-pushed
the
feat/phala-provider
branch
from
October 25, 2026 07:15
33fcba7 to
d5d433b
Compare
kingsleydon
marked this pull request as ready for review
October 25, 2026 07:15
Contributor
Action items
|
kingsleydon
force-pushed
the
feat/phala-provider
branch
from
October 25, 2026 08:10
d5d433b to
c5e64b3
Compare
Contributor
Action items
|
kingsleydon
force-pushed
the
feat/phala-provider
branch
from
October 25, 2026 08:30
c5e64b3 to
724d8c1
Compare
Contributor
Action items
|
kingsleydon
force-pushed
the
feat/phala-provider
branch
from
October 25, 2026 08:46
724d8c1 to
07fad14
Compare
Contributor
Action items
|
kingsleydon
force-pushed
the
feat/phala-provider
branch
from
October 25, 2026 08:54
07fad14 to
38e458e
Compare
Contributor
Action items
|
kingsleydon
force-pushed
the
feat/phala-provider
branch
from
October 25, 2026 09:02
38e458e to
8e2e88d
Compare
Contributor
|
No actionable findings. |
kingsleydon
force-pushed
the
feat/phala-provider
branch
from
October 25, 2026 09:29
8e2e88d to
695bdd3
Compare
Contributor
Action items
|
kingsleydon
force-pushed
the
feat/phala-provider
branch
from
October 25, 2026 09:38
695bdd3 to
d9e1ab0
Compare
Contributor
Action items
|
kingsleydon
marked this pull request as draft
October 25, 2026 10:12
kingsleydon
marked this pull request as ready for review
October 25, 2026 10:12
Contributor
|
No actionable findings. |
Author
|
This adds Phala (21 models, including Kev 4B via System One) and is now marked |
1 of 2 tasks
Add 21 schema-v2 provider entries plus a complete shared Kev 4B lab file. Use Phala's public prices and limits, official icon, OpenAI-compatible SDK, PHALA_AI_API_KEY, and the existing System One SDK for v2-only Kev. Copy native reasoning controls and record host evidence for deviations. Use reasoning_content compatibility on 16 reasoning models; GPT-OSS returns reasoning, which v1 cannot represent, so leave its field unset. Ten small live requests succeeded, including four reasoning_content tool replays. Validation: bun validate; git diff --check. An equivalent in-place comparison of all 22 v1 views against dev 7cd0423 found only 20 Phala chat additions, with existing v1 entries unchanged and this task's Kev entries excluded.
kingsleydon
force-pushed
the
feat/phala-provider
branch
from
October 25, 2026 13:45
d9e1ab0 to
2905da4
Compare
Contributor
|
No actionable findings. |
This branch has not been deployed
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.
Phala provides OpenAI-compatible Chat Completions at https://inference.phala.com/v1 using PHALA_AI_API_KEY; Kev 4B uses POST /v1/systemone. All 21 entries are cataloged as TEE-backed; /v1/aci/attestation attests the gateway, not each inference response.
Entries
20 Chat Completions models and one v2-only System One model use
base_modelwith host overrides; Kev 4B adds a complete shared lab definition. Costs are USD/MTok.deepseek/deepseek-v3.2deepseek/deepseek-v3.2deepseek/deepseek-v4-flash-0731deepseek/deepseek-v4-flash-0731deepseek/deepseek-v4.1-flash-1017deepseek/deepseek-v4.1-flash-1017google/gemma-4-31b-itgoogle/gemma-4-31b-itjaredpalmer/kev-4bjaredpalmer/kev-4bmeta-llama/llama-3.3-70b-instructmeta/llama-3.3-70b-instructmoonshotai/kimi-k2.6moonshotai/kimi-k2.6moonshotai/kimi-k3moonshotai/kimi-k3openai/gpt-oss-120bopenai/gpt-oss-120bqwen/qwen-2.5-7b-instructalibaba/qwen2.5-7b-instructqwen/qwen3-32balibaba/qwen3-32bqwen/qwen3-vl-30b-a3b-instructalibaba/qwen3-vl-30b-a3b-instructqwen/qwen3.5-27balibaba/qwen3.5-27bqwen/qwen3.5-397b-a17balibaba/qwen3.5-397b-a17bqwen/qwen3.6-27balibaba/qwen3.6-27bqwen/qwen3.6-35b-a3balibaba/qwen3.6-35b-a3bqwen/qwen3.8-27balibaba/qwen3.8-27bz-ai/glm-5.1zhipuai/glm-5.1z-ai/glm-5.2zhipuai/glm-5.2z-ai/glm-5.3-flashzhipuai/glm-5.3-flashz-ai/glm-5.3zhipuai/glm-5.3Reasoning controls
Controls follow native provider entries and relay peers. The leading model comments record the host probes used for deviations (Chat Completions,
max_tokens=256, 2026-10-25); these bounded probes do not establish behavior for every prompt.reasoning.enabled=falseandreasoning_effort=nonestill returned non-emptyreasoning_contenton all 3 prompts for GLM 5.1 and Qwen3.6 27B (256 reasoning tokens each). GLM 5.2 off returned 258/256/257; none returned 256/261/258. The off requests still reasoned in those probes. GLM 5.1 has no native graded effort and declares support only.reasoning_effort: native/peer sets are shown in the table; model headers record acceptance of DeepSeek V4 low/high/max. GLM 5.3/Flash use effort only, matching their native provider entries. The gateway source confirmsreasoning.effortas an alias; the alias was not separately live-tested.reasoning.max_tokens: the Qwen3.8 header records an accepted 64-token budget producing 2 reasoning tokens, while no-effort/xhigh both produced 193. The gateway rejects 0; other numeric bounds are unverified and left unspecified. Qwen3 32B keeps the native baseline; its recorded effect test was inconclusive (about 1 token even without a budget).reasoning.max_tokens=64were rejected with HTTP 400 on 3/3 prompts.[api.chat-completions] compatibility = { reasoning_field = "reasoning_content" }follows Chutes peers on 16 reasoning models. Live checks on 2026-10-25 (max_tokens=256, 10/10 requests HTTP 200):reasoning_content(117/3 characters); GLM 5.3 and Kimi K2.6 forced tool-call messages included emptyreasoning_content/reasoningfields, so those two probes establish field presence and replay acceptance only.reasoning_content, tool calls and tool results: 4/4 follow-ups accepted, including 2/2 non-empty reasoning replays.reasoningand noreasoning_contentin 2/2 requests. Its compatibility field stays unset: v1interleaved.fieldpermits onlyreasoning_content/reasoning_details(same limitation as the Nebius DeepSeek V4.1 peer). GLM 5.1 and Qwen3.6 27B also returned non-emptyreasoning_contentin the off-control probes above. The other 10 reasoning models follow peers; their response field was not individually probed.Catalog
input_modalitiesis text,image for Kimi K2.6/Qwen3 VL and text,image,video for GLM 5.3 Flash. MIME types follow the lab: GLM 5.3 Flash keeps video/mp4, video/x-matroska and video/quicktime; Kimi K2.6/Qwen3 VL remain text/image. None lists PDF, so PDF is omitted. Qwen3 VL's catalog output 32,768 matches its inherited lab value. Context-equal output caps inherit the lab; Qwen2.5 output is 8,192.Sources
is_tee,pricing.prompt/completion(USD/token),pricing.input_cache_read,context_length/max_output_length,input_modalitiesandsupported_parameters; exact MIME types follow the lab files.PHALA_AI_API_KEY. Each URL returned HTTP 200 and contained that string on 2026-10-25; their.mdxsources onPhala-Network/phala-docsmain were also checked.reasoningandreasoning_content).providers/deepseek/models/deepseek-v4-flash.toml,providers/alibaba/models/qwen*.toml,providers/zhipuai/models/glm-5*.toml,providers/moonshotai/models/kimi-*.toml; Kimi K3 relay:providers/nearai/models/moonshotai/kimi-k3.toml; GPT-OSS peer:providers/tinfoil/models/gpt-oss-120b.toml.providers/chutes/models/deepseek-ai/DeepSeek-V3.2-TEE.tomlandproviders/chutes/models/moonshotai/Kimi-K2.6-TEE.toml; v1 field limitation:packages/core/src/schema.tsandproviders/nebius/models/deepseek-ai/DeepSeek-V4.1-Flash-1017.toml. The response-field/tool-replay counts above were checked live on 2026-10-25.providers/baseten/models/decision-models/baseten-mammoth-27b-latest.toml; the Kev integration was not live-tested.Notes for reviewers
[modalities]inkimi-k2.6,qwen3-vl-30b-a3b-instructandglm-5.3-flashnarrowsinputto the host catalog.output = ["text"]is required becauseModalitiesV2requires both arrays andmodelV2ToV1validates provider TOML beforebase_modelinheritance (packages/core/src/schema-v2.ts,packages/core/src/translate.ts).Validation
bun validateandgit diff --checkpass.bun run v1:checkwas not run. An equivalent in-place comparison used the repository'sgenerateCatalog,filterCatalogByModelTypeandMODEL_TYPES, matching the generation inpackages/core/script/v1-check.ts, to compare all 22 v1 views against dev7cd04230c.The baseline was generated with the two newly added catalog directories temporarily held outside the catalog and restored in
finally; all other tracked files matched dev. Onlyapi,api-allandapi-chatchange, adding Phala and its 20 Chat Completions models. Existing providers, models and fields are unchanged. Phala's Kev lab/provider entries are v2-only and absent from v1. No additional Git worktree was created.The two uncensored variants (phala/gemma-4-26b-a4b-uncensored and phala/qwen3.8-27b-uncensored) are excluded; Responses/Messages are deferred.
🤖 Generated with Claude Code