docs: add The Grid custom LLM guide - #1194
Open
CastilloLuis wants to merge 1 commit into
Open
Conversation
The Grid is an OpenAI-compatible inference marketplace. Document it as a custom-llm provider alongside the existing OpenRouter/Together guidance, and note that Vapi's default maxTokens of 250 is shared with reasoning tokens on several instruments.
Lightsage docs evalsWaiting for the staging docs URL before running evals. Lightsage will start the selected PR evals automatically when GitHub reports a successful docs deployment for this PR. This usually happens within 15 minutes. Commit: |
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.
What
Adds a docs page for The Grid as a
custom-llmprovider, following the existing guidance that "Vapi supports using any OpenAI-compatible endpoint as the LLM. This includes services like OpenRouter, AnyScale, Together AI".Two files: the new page and one nav entry under Custom LLMs.
Why the maxTokens note
Most of the page is the standard credential + assistant JSON. The one thing I thought was worth documenting is a footgun I hit while testing:
Vapi's
maxTokensdefaults to 250, and on The Grid that budget is shared with reasoning tokens — which are counted and billed but never spoken. On one short prompt:text-standardstopagent-maxlength(truncated)So at the default,
agent-maxstops mid-sentence. The page recommends raisingmaxTokensand keeping the brevity instruction in the system prompt instead.Verification
Everything in the page was tested against the live API using the OpenAI Node SDK with
baseURLset the way Vapi sets it:stream: true, 246 chunks)tool_callsmax_tokensis honoredGET /v1/modelsreturns a spec-shaped{object: "list", data: [...]}with 17 instrumentsI'm from The Grid, so treat the product framing as vendor-authored and edit it however you'd like — happy to cut the table or the tier list if it's more detail than these pages usually carry.