docs(ai-gateway): publish AI Gateway module reference#231
Open
sam-prais wants to merge 1 commit into
Open
Conversation
The AI Gateway module's JSDoc was already updated in #226, but the types were never added to the docs pipeline whitelist, so the module never appeared in the generated SDK reference. Add AiGatewayModule and AiGatewayConnection to the docs pipeline, and rewrite the JSDoc for reference quality: explain what an OpenAI-compatible client is, clarify that the credit quota is shared across all app users (not per-user), link to the current model list, and split the growing intro into Models / Authentication Modes / Billing and limits sections.
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/sdk@0.8.39-pr.231.0f61b59Prefer not to change any import paths? Install using npm alias so your code still imports npm i "@base44/sdk@npm:@base44-preview/sdk@0.8.39-pr.231.0f61b59"Or add it to your {
"dependencies": {
"@base44/sdk": "npm:@base44-preview/sdk@0.8.39-pr.231.0f61b59"
}
}
Preview published to npm registry — try new features instantly! |
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.
Summary
base44.aiGateway/base44.asServiceRole.aiGateway) had JSDoc from fix(ai-gateway): resolve gateway by app id in the path #226 but was never added to the docs pipeline whitelist, so it never appeared in the generated SDK reference.AiGatewayModuleandAiGatewayConnectiontotypes-to-expose.json, and addAiGatewayConnectiontotypes-to-delete-after-processing.json(same pattern asDeleteResult/ImportResult: keep it inline in theconnection()method'sReturnsaccordion, without a redundant standalone/appended section).InvokeLLM'smodelparam) instead of hardcoding a list that will drift.## Models,## Authentication Modes, and## Billing and limitssections, matching the Agents/Auth/Functions module pages.@example(plain OpenAI SDK call) ahead of the existing tool-loop agent example, per the "start simple" convention.Test plan
npm test— 180/180 passingnpm run create-docs— verified the generated page has no duplicateAiGatewayConnection/Propertiessection and no stray standalone nav pagemint devagainst the pairedmintlify-docsbranch