@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.mjs CHANGED
@@ -130,11 +130,13 @@ CREATE TABLE IF NOT EXISTS schema_version (
130
130
  INSERT OR IGNORE INTO schema_version (version) VALUES (1);
131
131
  `;
132
132
  var DEFAULT_ROUTING_RULES = [
133
- { taskType: "code_generation", preferredModel: "anthropic:claude-3-5-haiku-latest" },
134
- { taskType: "code_review", preferredModel: "anthropic:claude-3-5-haiku-latest" },
133
+ // Complex tasks Sonnet (need reasoning & quality)
134
+ { taskType: "code_generation", preferredModel: "anthropic:claude-sonnet-4-20250514" },
135
+ { taskType: "code_review", preferredModel: "anthropic:claude-sonnet-4-20250514" },
136
+ { taskType: "analysis", preferredModel: "anthropic:claude-sonnet-4-20250514" },
137
+ { taskType: "creative_writing", preferredModel: "anthropic:claude-sonnet-4-20250514" },
138
+ // Simple tasks → Haiku (cost efficient)
135
139
  { taskType: "summarization", preferredModel: "anthropic:claude-3-5-haiku-latest" },
136
- { taskType: "analysis", preferredModel: "anthropic:claude-3-5-haiku-latest" },
137
- { taskType: "creative_writing", preferredModel: "anthropic:claude-3-5-haiku-latest" },
138
140
  { taskType: "data_extraction", preferredModel: "anthropic:claude-3-5-haiku-latest" },
139
141
  { taskType: "translation", preferredModel: "anthropic:claude-3-5-haiku-latest" },
140
142
  { taskType: "question_answering", preferredModel: "anthropic:claude-3-5-haiku-latest" },
@@ -1605,11 +1607,14 @@ var MODEL_MAPPING = {
1605
1607
  "gpt-4.1": { provider: "openai", model: "gpt-4.1" }
1606
1608
  };
1607
1609
  var DEFAULT_ROUTING = {
1608
- code_generation: { provider: "anthropic", model: "claude-3-5-haiku-latest" },
1609
- code_review: { provider: "anthropic", model: "claude-3-5-haiku-latest" },
1610
+ // Complex tasks Sonnet (need reasoning & quality)
1611
+ code_review: { provider: "anthropic", model: "claude-sonnet-4-20250514" },
1612
+ analysis: { provider: "anthropic", model: "claude-sonnet-4-20250514" },
1613
+ creative_writing: { provider: "anthropic", model: "claude-sonnet-4-20250514" },
1614
+ // Medium tasks → Sonnet (benefit from better model)
1615
+ code_generation: { provider: "anthropic", model: "claude-sonnet-4-20250514" },
1616
+ // Simple tasks → Haiku (cost efficient)
1610
1617
  summarization: { provider: "anthropic", model: "claude-3-5-haiku-latest" },
1611
- analysis: { provider: "anthropic", model: "claude-3-5-haiku-latest" },
1612
- creative_writing: { provider: "anthropic", model: "claude-3-5-haiku-latest" },
1613
1618
  data_extraction: { provider: "anthropic", model: "claude-3-5-haiku-latest" },
1614
1619
  translation: { provider: "anthropic", model: "claude-3-5-haiku-latest" },
1615
1620
  question_answering: { provider: "anthropic", model: "claude-3-5-haiku-latest" },