Skip to content

feat: add Zima as privacy-preserving OpenAI-compatible provider#12472

Open
abhigyan-zima wants to merge 1 commit into
continuedev:mainfrom
abhigyan-zima:ZIMA_PROVIDER
Open

feat: add Zima as privacy-preserving OpenAI-compatible provider#12472
abhigyan-zima wants to merge 1 commit into
continuedev:mainfrom
abhigyan-zima:ZIMA_PROVIDER

Conversation

@abhigyan-zima
Copy link
Copy Markdown

@abhigyan-zima abhigyan-zima commented May 22, 2026

Hey, been using Zima for a while and kept wiring it into config manually, figured I'd just upstream it. Zima is OpenAI-compatible so the diff is small (~10 lines)... Zima doesn't store any of my data or LLM usage — they have special hardware and infrastructure so Zima as a provider can't see the prompts, inputs, or outputs...


Summary by cubic

Add zima as an OpenAI-compatible provider with gpt-4o and gpt-4o-mini, served via Zima’s privacy-preserving infrastructure. Enables chat (and autocomplete for gpt-4o-mini) with 128k context.

Written for commit 412822d. Summary will update on new commits. Review in cubic

@abhigyan-zima abhigyan-zima requested a review from a team as a code owner May 22, 2026 17:27
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label May 22, 2026
@github-actions
Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


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.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="packages/llm-info/src/providers/zima.ts">

<violation number="1" location="packages/llm-info/src/providers/zima.ts:11">
P1: Model regex `/gpt-4o/i` is a non-anchored substring match placed before `/gpt-4o-mini/i`, so `findLlmInfo('gpt-4o-mini')` matches the `gpt-4o` entry first and returns wrong metadata (missing 'autocomplete' recommendation, wrong display name). Anchor the regex to avoid collision: `/^gpt-4o$/i`.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

contextLength: 128000,
description:
"OpenAI's GPT-4o served through Zima's privacy-preserving infrastructure. Zima's hardware ensures prompts and outputs are never visible to the provider.",
regex: /gpt-4o/i,
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot May 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: Model regex /gpt-4o/i is a non-anchored substring match placed before /gpt-4o-mini/i, so findLlmInfo('gpt-4o-mini') matches the gpt-4o entry first and returns wrong metadata (missing 'autocomplete' recommendation, wrong display name). Anchor the regex to avoid collision: /^gpt-4o$/i.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/llm-info/src/providers/zima.ts, line 11:

<comment>Model regex `/gpt-4o/i` is a non-anchored substring match placed before `/gpt-4o-mini/i`, so `findLlmInfo('gpt-4o-mini')` matches the `gpt-4o` entry first and returns wrong metadata (missing 'autocomplete' recommendation, wrong display name). Anchor the regex to avoid collision: `/^gpt-4o$/i`.</comment>

<file context>
@@ -0,0 +1,26 @@
+      contextLength: 128000,
+      description:
+        "OpenAI's GPT-4o served through Zima's privacy-preserving infrastructure. Zima's hardware ensures prompts and outputs are never visible to the provider.",
+      regex: /gpt-4o/i,
+      recommendedFor: ["chat"],
+    },
</file context>
Suggested change
regex: /gpt-4o/i,
+ regex: /^gpt-4o$/i,
Fix with Cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant