feat: add latest models, Google API support, and Openfort MCP server evals#5
Open
emauja wants to merge 1 commit into
Open
feat: add latest models, Google API support, and Openfort MCP server evals#5emauja wants to merge 1 commit into
emauja wants to merge 1 commit into
Conversation
…evals - Update model list to latest: GPT-4.1/4.1-mini/4.1-nano, GPT-5, o3/o3-mini/o4-mini, Claude Opus 4.6/Sonnet 4.5/Haiku 4.5, Gemini 2.5 Pro/Flash, v0-1.5-md - Add Google provider support with @ai-sdk/google and GOOGLE_API_KEY - Add --provider flag to filter evals by model provider (openai, anthropic, google, vercel) - Add --mcp flag and MCP runner for tool-assisted evaluations via Openfort MCP server - Create MCP server eval (evals/mcp-server) testing LLM ability to use Openfort MCP tools - Port MCP client utility from upstream clerk-evals using @ai-sdk/mcp and StreamableHTTP - Create shared runner utilities (runners/shared.ts) for code reuse - Update graders catalog and scorers to use Openfort references instead of Clerk - Fix LanguageModel type compatibility with AI SDK v5 - Add Google rate limiting support - Update README with new models, CLI options, and MCP documentation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
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
Updated model list to all latest models across 4 providers:
Added Google/Gemini provider support:
@ai-sdk/googledependency for Gemini modelsGOOGLE_API_KEYenvironment variableGOOGLE_RATE_LIMIT_RPM)Added
--providerflag to filter evals by model provider (-p openai,-p google, etc.)Added
--mcpflag and MCP runner for tool-assisted evaluations:src/runners/mcp.ts— MCP runner that connects to Openfort MCP server and provides tools to models during evaluationsrc/utils/mcp-client.ts— MCP client utility using@ai-sdk/mcpand Streamable HTTP transporthttps://mcp.openfort.io/sse(override viaMCP_SERVER_URL_OVERRIDE)bun start:mcpshortcut scriptCreated Openfort MCP server eval (
evals/mcp-server):Infrastructure improvements:
src/runners/shared.tswith reusable runner utilities (loadPrompt, loadGraders, runGraders, computeScore)src/graders/catalog.tsandsrc/scorers/constants.ts— now Openfort-specificFrameworktype to support'React' | 'Node.js' | 'Next.js' | 'MCP'Environment Variables Required
To run all models, you need:
Test plan
bun run lint— passes (only pre-existing warnings remain)bunx tsc --noEmit— TypeScript compiles cleanlybun start --help— shows updated help with all models and new flagsbun start --provider google --eval evals/basic-setup— runs Google models onlybun start --mcp --eval evals/mcp-server— runs MCP eval with tool supportbun startwith all API keys configured🤖 Generated with Claude Code