Skip to content

Conversation

@opencode-agent
Copy link
Contributor

Summary

I've successfully implemented comprehensive reasoning configuration support for the models.dev database. Here's what was accomplished:

✅ Schema Enhancement

  • Extended the Model schema to support both simple boolean and detailed reasoning configurations
  • Backward compatible - existing models with reasoning = true/false continue to work
  • Flexible configuration supporting both effort-based and budget-based approaches

✅ New Reasoning Configuration Structure

The schema now supports:

[reasoning]
supported = true
controllable = true
type = "effort"  # or "budget"
effort_levels = ["low", "medium", "high"]  # for effort-based
default = "medium"

# OR for budget-based:
[reasoning.budget_range]
min = 128
max = 32768
dynamic = -1
off = 0

✅ Updated Key Models

Based on the GitHub issue specifications:

  • OpenAI GPT-5: Effort-based (low/medium/high, default: medium)
  • Google Gemini 2.5 Pro: Budget-based (128-32768, default: dynamic)
  • Google Gemini 2.5 Flash: Budget-based (0-24576, default: dynamic)
  • xAI Grok 3 Mini Fast: Effort-based (low/high, default: high)
  • xAI Grok 4 Fast: Always-on reasoning (not controllable)

✅ Web Interface Updates

  • Enhanced reasoning column to show more detailed information
  • Displays "Yes (effort)", "Yes (budget)", "Always", or "No"
  • Maintains clean, readable format while providing more context

✅ Validation & Testing

  • All schema validation passes successfully
  • Web build completes without errors
  • Maintains backward compatibility with existing models

The implementation addresses all the different reasoning approaches mentioned in the GitHub issue:

  1. Always-on reasoning (controllable = false)
  2. Configurable effort levels (OpenAI approach)
  3. Budget ranges with special values (Google approach)
  4. Mixed controllability (some models allow adjustment, others don't)

This provides a comprehensive foundation for representing reasoning capabilities across different AI providers in the models.dev database.

Closes #314

New%20session%20-%202025-10-24T15%3A02%3A31.055Z
opencode session  |  github run

@rekram1-node
Copy link
Contributor

dumbass bot lmao

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.

Proposal: Reasoning option / budget

2 participants