Skip to content

Add local/lorem-ipsum model to avoid OpenRouter spend - #20

Merged
cb-srinaths merged 1 commit into
mainfrom
feat/lorem-ipsum-model
Sep 14, 2026
Merged

cb-srinaths merged 1 commit into
mainfrom
feat/lorem-ipsum-model

Conversation

@cb-alish

Copy link
Copy Markdown
Contributor

What

Adds a local/lorem-ipsum model that streams lorem ipsum text directly from the app — no OpenRouter call, no credits consumed.

Why

OpenRouter quotas were getting exhausted. This gives every user a zero-cost model for testing and demos.

How

  • pointer/lib/generate/lorem.ts — streams the classic lorem ipsum paragraph word-by-word (40 ms/word), respects abort signal, estimates token counts the same way as real models
  • pointer/lib/generate/index.ts — streamGeneration() short-circuits to the lorem stream before touching OpenRouter when model === "local/lorem-ipsum"
  • pointer/config/models.yaml — slug added explicitly to basic, advanced, premium; enterprise gets it via *

Metering, entitlements, and rate-limiting all work normally.

Made with Cursor

Streams lorem ipsum word-by-word from the app itself — no external API
call, no credits consumed. Available to all plan tiers. Useful for dev,
demos, and as a fallback when OpenRouter quota is exhausted.

Co-authored-by: Cursor <cursoragent@cursor.com>
@snyk-io

snyk-io Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues
✅ Secrets 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@coderabbitai

coderabbitai Bot commented Sep 14, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 95aae7e5-ddc0-48b7-8d48-c2c5fd1a0b0e


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cb-srinaths
cb-srinaths merged commit db301d8 into main Sep 14, 2026
6 checks passed
@cb-srinaths
cb-srinaths deleted the feat/lorem-ipsum-model branch September 14, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants