@relayplane/proxy 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -132,11 +132,13 @@ CREATE TABLE IF NOT EXISTS schema_version (
132
132
  INSERT OR IGNORE INTO schema_version (version) VALUES (1);
133
133
  `;
134
134
  var DEFAULT_ROUTING_RULES = [
135
- { taskType: "code_generation", preferredModel: "anthropic:claude-3-5-haiku-latest" },
136
- { taskType: "code_review", preferredModel: "anthropic:claude-3-5-haiku-latest" },
135
+ // Complex tasks Sonnet (need reasoning & quality)
136
+ { taskType: "code_generation", preferredModel: "anthropic:claude-sonnet-4-20250514" },
137
+ { taskType: "code_review", preferredModel: "anthropic:claude-sonnet-4-20250514" },
138
+ { taskType: "analysis", preferredModel: "anthropic:claude-sonnet-4-20250514" },
139
+ { taskType: "creative_writing", preferredModel: "anthropic:claude-sonnet-4-20250514" },
140
+ // Simple tasks → Haiku (cost efficient)
137
141
  { taskType: "summarization", preferredModel: "anthropic:claude-3-5-haiku-latest" },
138
- { taskType: "analysis", preferredModel: "anthropic:claude-3-5-haiku-latest" },
139
- { taskType: "creative_writing", preferredModel: "anthropic:claude-3-5-haiku-latest" },
140
142
  { taskType: "data_extraction", preferredModel: "anthropic:claude-3-5-haiku-latest" },
141
143
  { taskType: "translation", preferredModel: "anthropic:claude-3-5-haiku-latest" },
142
144
  { taskType: "question_answering", preferredModel: "anthropic:claude-3-5-haiku-latest" },
@@ -1603,11 +1605,14 @@ var MODEL_MAPPING = {
1603
1605
  "gpt-4.1": { provider: "openai", model: "gpt-4.1" }
1604
1606
  };
1605
1607
  var DEFAULT_ROUTING = {
1606
- code_generation: { provider: "anthropic", model: "claude-3-5-haiku-latest" },
1607
- code_review: { provider: "anthropic", model: "claude-3-5-haiku-latest" },
1608
+ // Complex tasks Sonnet (need reasoning & quality)
1609
+ code_review: { provider: "anthropic", model: "claude-sonnet-4-20250514" },
1610
+ analysis: { provider: "anthropic", model: "claude-sonnet-4-20250514" },
1611
+ creative_writing: { provider: "anthropic", model: "claude-sonnet-4-20250514" },
1612
+ // Medium tasks → Sonnet (benefit from better model)
1613
+ code_generation: { provider: "anthropic", model: "claude-sonnet-4-20250514" },
1614
+ // Simple tasks → Haiku (cost efficient)
1608
1615
  summarization: { provider: "anthropic", model: "claude-3-5-haiku-latest" },
1609
- analysis: { provider: "anthropic", model: "claude-3-5-haiku-latest" },
1610
- creative_writing: { provider: "anthropic", model: "claude-3-5-haiku-latest" },
1611
1616
  data_extraction: { provider: "anthropic", model: "claude-3-5-haiku-latest" },
1612
1617
  translation: { provider: "anthropic", model: "claude-3-5-haiku-latest" },
1613
1618
  question_answering: { provider: "anthropic", model: "claude-3-5-haiku-latest" },