@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/index.js CHANGED
@@ -183,11 +183,13 @@ CREATE TABLE IF NOT EXISTS schema_version (
183
183
  INSERT OR IGNORE INTO schema_version (version) VALUES (1);
184
184
  `;
185
185
  var DEFAULT_ROUTING_RULES = [
186
- { taskType: "code_generation", preferredModel: "anthropic:claude-3-5-haiku-latest" },
187
- { taskType: "code_review", preferredModel: "anthropic:claude-3-5-haiku-latest" },
186
+ // Complex tasks Sonnet (need reasoning & quality)
187
+ { taskType: "code_generation", preferredModel: "anthropic:claude-sonnet-4-20250514" },
188
+ { taskType: "code_review", preferredModel: "anthropic:claude-sonnet-4-20250514" },
189
+ { taskType: "analysis", preferredModel: "anthropic:claude-sonnet-4-20250514" },
190
+ { taskType: "creative_writing", preferredModel: "anthropic:claude-sonnet-4-20250514" },
191
+ // Simple tasks → Haiku (cost efficient)
188
192
  { taskType: "summarization", preferredModel: "anthropic:claude-3-5-haiku-latest" },
189
- { taskType: "analysis", preferredModel: "anthropic:claude-3-5-haiku-latest" },
190
- { taskType: "creative_writing", preferredModel: "anthropic:claude-3-5-haiku-latest" },
191
193
  { taskType: "data_extraction", preferredModel: "anthropic:claude-3-5-haiku-latest" },
192
194
  { taskType: "translation", preferredModel: "anthropic:claude-3-5-haiku-latest" },
193
195
  { taskType: "question_answering", preferredModel: "anthropic:claude-3-5-haiku-latest" },
@@ -1658,11 +1660,14 @@ var MODEL_MAPPING = {
1658
1660
  "gpt-4.1": { provider: "openai", model: "gpt-4.1" }
1659
1661
  };
1660
1662
  var DEFAULT_ROUTING = {
1661
- code_generation: { provider: "anthropic", model: "claude-3-5-haiku-latest" },
1662
- code_review: { provider: "anthropic", model: "claude-3-5-haiku-latest" },
1663
+ // Complex tasks Sonnet (need reasoning & quality)
1664
+ code_review: { provider: "anthropic", model: "claude-sonnet-4-20250514" },
1665
+ analysis: { provider: "anthropic", model: "claude-sonnet-4-20250514" },
1666
+ creative_writing: { provider: "anthropic", model: "claude-sonnet-4-20250514" },
1667
+ // Medium tasks → Sonnet (benefit from better model)
1668
+ code_generation: { provider: "anthropic", model: "claude-sonnet-4-20250514" },
1669
+ // Simple tasks → Haiku (cost efficient)
1663
1670
  summarization: { provider: "anthropic", model: "claude-3-5-haiku-latest" },
1664
- analysis: { provider: "anthropic", model: "claude-3-5-haiku-latest" },
1665
- creative_writing: { provider: "anthropic", model: "claude-3-5-haiku-latest" },
1666
1671
  data_extraction: { provider: "anthropic", model: "claude-3-5-haiku-latest" },
1667
1672
  translation: { provider: "anthropic", model: "claude-3-5-haiku-latest" },
1668
1673
  question_answering: { provider: "anthropic", model: "claude-3-5-haiku-latest" },