修改cadai工具,修改后台上传限制
This commit is contained in:
@@ -90,8 +90,9 @@ vibemake:
|
||||
cad:
|
||||
ai:
|
||||
enabled: ${CAD_AI_ENABLED:true}
|
||||
model: ${CAD_AI_MODEL:${vibemake.ai.model}}
|
||||
request-timeout: ${CAD_AI_REQUEST_TIMEOUT:60s}
|
||||
model: ${CAD_AI_MODEL:doubao-seed-2-1-lite-260915}
|
||||
request-timeout: ${CAD_AI_REQUEST_TIMEOUT:300s}
|
||||
max-output-tokens: ${CAD_AI_MAX_OUTPUT_TOKENS:16384}
|
||||
heartbeat-interval: 10s
|
||||
max-concurrent: ${CAD_AI_MAX_CONCURRENT:4}
|
||||
requests-per-minute: ${CAD_AI_REQUESTS_PER_MINUTE:30}
|
||||
|
||||
@@ -152,9 +152,14 @@ class CadAiTest {
|
||||
.andExpect(jsonPath("$.data.enabled").value(true))
|
||||
.andExpect(jsonPath("$.data.protocolVersion").value("cad-agent-v1"))
|
||||
.andExpect(jsonPath("$.data.model").value("cad-test-model"))
|
||||
.andExpect(jsonPath("$.data.tools.length()").value(11)).andReturn();
|
||||
.andExpect(jsonPath("$.data.tools.length()").value(12)).andReturn();
|
||||
String body = result.getResponse().getContentAsString();
|
||||
assertThat(body).doesNotContain("cad-test-placeholder", "apiKey", "endpoint");
|
||||
assertThat(body).doesNotContain("cad-test-placeholder", "apiKey", "endpoint", "SolidCraft");
|
||||
assertThat(json.readTree(body).path("data").path("tools")).anySatisfy(tool -> {
|
||||
assertThat(tool.path("name").asText()).isEqualTo("skill_reference");
|
||||
assertThat(tool.path("parameters").path("properties").path("skill").path("enum")).hasSize(17);
|
||||
assertThat(tool.path("parameters").path("properties").path("file").path("default").asText()).isEqualTo("SKILL.md");
|
||||
});
|
||||
assertThat(json.readTree(body).path("data").has("id")).isFalse();
|
||||
assertThat(model.inputs).isEmpty();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user