@contextos/core 0.4.1 → 0.4.2

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3163,7 +3163,7 @@ var AnthropicAdapter = class {
3163
3163
  "anthropic-version": "2023-06-01"
3164
3164
  },
3165
3165
  body: JSON.stringify({
3166
- model: this.model,
3166
+ model: request.model ?? this.model,
3167
3167
  max_tokens: request.maxTokens ?? 4e3,
3168
3168
  system: request.systemPrompt,
3169
3169
  messages: [
@@ -8023,9 +8023,9 @@ var AIGenerator = class {
8023
8023
  const result = await this.anthropic.complete({
8024
8024
  systemPrompt: "You are an expert software developer. Generate clean, production-ready code.",
8025
8025
  userMessage: fullPrompt,
8026
- maxTokens: 8e3,
8027
- model: "claude-3-5-sonnet-20240620"
8028
- // Default to 3.5 Sonnet
8026
+ maxTokens: 4096,
8027
+ model: "claude-4.5-opus-20260115"
8028
+ // Claude 4.5 Opus
8029
8029
  });
8030
8030
  response = result.content;
8031
8031
  tokensUsed = result.tokensUsed.total;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contextos/core",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Core engine for ContextOS - context management, parsing, and ranking",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",