Skip to content

Lyapsus/opencode-optimal-model-temps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

opencode-optimal-model-temps

Minimal OpenCode plugin that hooks chat.params and nudges specific models to their preferred sampling temperature. Right now it only pinches Google Gemini 3 Pro to 0.35, following the recommendation in Optimal Temperature for Gemini 3 Pro. Published on npm as opencode-optimal-model-temps.

Usage

Add the plugin to your ~/.config/opencode/opencode.json:

{
  "plugin": [
    "opencode-optimal-model-temps"
  ]
}

You can override the defaults with env vars:

  • OPENCODE_GEMINI3_TEMPERATURE: override target (defaults to 0.35).
  • OPENCODE_GEMINI3_BASELINE: baseline value (defaults to 1). The plugin only overrides when the CLI is still using this baseline, so your explicit agent temperatures still win.

Feel free to extend src/index.ts with more entries in TEMPERATURE_RULES as the “perfect” settings for other models surface.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published