@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.
- package/dist/index.js +4 -4
- 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:
|
|
8027
|
-
model: "claude-
|
|
8028
|
-
//
|
|
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;
|