Commit Graph

4 Commits

  • docs(coding-agent): improve models.md with minimal example and defaults
    - Add minimal example showing only required fields for local models
    - Rename 'Basic Example' to 'Full Example' showing all fields
    - Add 'Default' column to model configuration table
    - Clarify that apiKey is required but ignored by Ollama
  • feat(ai): add Vercel AI Gateway routing support (#1051)
    * feat(ai): add Vercel AI Gateway routing support
    
    Add vercelGatewayRouting to OpenAICompletionsCompat, parallel to
    openRouterRouting. When a model targets ai-gateway.vercel.sh and has
    vercelGatewayRouting configured, the openai-completions provider passes
    providerOptions.gateway with only/order in the request body.
    
    Changes:
    - types.ts: VercelGatewayRouting interface + field on OpenAICompletionsCompat
    - openai-completions.ts: buildParams passes providerOptions.gateway,
      detectCompat/getCompat include the new field
    - model-registry.ts: VercelGatewayRoutingSchema for models.json validation
    - test: updated Required<OpenAICompletionsCompat> in test fixture
    
    * docs(coding-agent): add vercelGatewayRouting to custom models documentation