@inkeep/create-agents 0.12.0 → 0.13.0
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/utils.js +8 -3
- package/package.json +1 -1
package/dist/utils.js
CHANGED
|
@@ -33,10 +33,10 @@ export const defaultAnthropicModelConfigurations = {
|
|
|
33
33
|
model: 'anthropic/claude-sonnet-4-20250514',
|
|
34
34
|
},
|
|
35
35
|
structuredOutput: {
|
|
36
|
-
model: 'anthropic/claude-
|
|
36
|
+
model: 'anthropic/claude-sonnet-4-20250514',
|
|
37
37
|
},
|
|
38
38
|
summarizer: {
|
|
39
|
-
model: 'anthropic/claude-
|
|
39
|
+
model: 'anthropic/claude-sonnet-4-20250514',
|
|
40
40
|
},
|
|
41
41
|
};
|
|
42
42
|
export const createAgents = async (args = {}) => {
|
|
@@ -91,7 +91,7 @@ export const createAgents = async (args = {}) => {
|
|
|
91
91
|
}
|
|
92
92
|
// Project ID is already determined above based on template/customProjectId logic
|
|
93
93
|
// If keys aren't provided via CLI args, prompt for provider selection and keys
|
|
94
|
-
if (!anthropicKey && !openAiKey) {
|
|
94
|
+
if (!anthropicKey && !openAiKey && !googleKey) {
|
|
95
95
|
const providerChoice = await p.select({
|
|
96
96
|
message: 'Which AI provider would you like to use?',
|
|
97
97
|
options: [
|
|
@@ -167,6 +167,11 @@ export const createAgents = async (args = {}) => {
|
|
|
167
167
|
else if (googleKey) {
|
|
168
168
|
defaultModelSettings = defaultGoogleModelConfigurations;
|
|
169
169
|
}
|
|
170
|
+
// Ensure models are always configured - fail if none were set
|
|
171
|
+
if (Object.keys(defaultModelSettings).length === 0) {
|
|
172
|
+
p.cancel('Cannot continue without a model configuration for project. Please provide an API key for at least one AI provider.');
|
|
173
|
+
process.exit(1);
|
|
174
|
+
}
|
|
170
175
|
const s = p.spinner();
|
|
171
176
|
s.start('Creating directory structure...');
|
|
172
177
|
try {
|