Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ public class Features {
@JsonAlias({"customTemperatureSupported", "custom_temperature_supported"})
private Boolean customTemperatureSupported;

@JsonAlias({"skillsSupported", "skills_supported"})
private Boolean skillsSupported;

@JsonAlias({"reasoningEfforts", "reasoning_efforts"})
private List<String> reasoningEfforts;

Expand Down Expand Up @@ -109,6 +112,7 @@ public static Features merge(Features base, Features overrides) {
merged.maxTokensSupported = override(base.maxTokensSupported, overrides.maxTokensSupported);
merged.maxCompletionTokensSupported = override(base.maxCompletionTokensSupported, overrides.maxCompletionTokensSupported);
merged.customTemperatureSupported = override(base.customTemperatureSupported, overrides.customTemperatureSupported);
merged.skillsSupported = override(base.skillsSupported, overrides.skillsSupported);
List<String> efforts = override(base.reasoningEfforts, overrides.reasoningEfforts);
merged.reasoningEfforts = efforts == null ? null : List.copyOf(efforts);
return merged;
Expand Down
4 changes: 4 additions & 0 deletions docs/open_api_core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16034,6 +16034,8 @@ components:
type: string
url_attachments_supported:
type: boolean
skills_supported:
type: boolean
FeaturesData:
type: object
properties:
Expand Down Expand Up @@ -16087,6 +16089,8 @@ components:
type: boolean
url_attachments:
type: boolean
skills_supported:
type: boolean
FileConfigControllerItemsResponseFileConfigControllerNamedEntity:
type: object
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public class FeaturesData {
private boolean maxTokensSupported = true;
private boolean maxCompletionTokensSupported = false;
private boolean customTemperatureSupported = true;
private boolean skillsSupported = false;
private List<String> reasoningEfforts = List.of();

/**
Expand Down Expand Up @@ -141,6 +142,10 @@ public static FeaturesData createFeatures(Features features) {
data.setCustomTemperatureSupported(features.getCustomTemperatureSupported());
}

if (features.getSkillsSupported() != null) {
data.setSkillsSupported(features.getSkillsSupported());
}

if (features.getReasoningEfforts() != null && !features.getReasoningEfforts().isEmpty()) {
data.setReasoningEfforts(List.copyOf(features.getReasoningEfforts()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,7 @@ void testOpenAiApi() {
"max_tokens_supported": true,
"max_completion_tokens_supported": false,
"custom_temperature_supported": true,
"skills_supported": false,
"reasoning_efforts": []
},
"defaults" : { },
Expand Down Expand Up @@ -1065,6 +1066,7 @@ void testOpenAiApi() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -1131,6 +1133,7 @@ void testOpenAiApi() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -1163,6 +1166,7 @@ void testOpenAiApi() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -1208,6 +1212,7 @@ void testOpenAiApi() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -1240,6 +1245,7 @@ void testOpenAiApi() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -1294,6 +1300,7 @@ void testOpenAiApi() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -1326,6 +1333,7 @@ void testOpenAiApi() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -1356,6 +1364,7 @@ void testOpenAiApi() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -1400,6 +1409,7 @@ void testOpenAiApi() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -1432,6 +1442,7 @@ void testOpenAiApi() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ void testOpenAiApplicationListing() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -629,6 +630,7 @@ void testOpenAiApplicationListing() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -674,6 +676,7 @@ void testOpenAiApplicationListing() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -706,6 +709,7 @@ void testOpenAiApplicationListing() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -760,6 +764,7 @@ void testOpenAiApplicationListing() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -792,6 +797,7 @@ void testOpenAiApplicationListing() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -822,6 +828,7 @@ void testOpenAiApplicationListing() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -887,6 +894,7 @@ void testOpenAiApplicationListing() {
"max_tokens_supported": true,
"max_completion_tokens_supported": false,
"custom_temperature_supported": true,
"skills_supported": false,
"reasoning_efforts": []
},
"defaults":{},
Expand Down Expand Up @@ -921,6 +929,7 @@ void testOpenAiApplicationListing() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -974,6 +983,7 @@ void testOpenAiApplicationListing() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -1006,6 +1016,7 @@ void testOpenAiApplicationListing() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -1051,6 +1062,7 @@ void testOpenAiApplicationListing() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -1083,6 +1095,7 @@ void testOpenAiApplicationListing() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -1137,6 +1150,7 @@ void testOpenAiApplicationListing() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -1169,6 +1183,7 @@ void testOpenAiApplicationListing() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -1199,6 +1214,7 @@ void testOpenAiApplicationListing() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -1243,6 +1259,7 @@ void testOpenAiApplicationListing() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -1275,6 +1292,7 @@ void testOpenAiApplicationListing() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -1551,6 +1569,7 @@ void testApplicationWithTypeSchemaCreation_Ok_FilesAccessible() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -1583,6 +1602,7 @@ void testApplicationWithTypeSchemaCreation_Ok_FilesAccessible() {
"max_tokens_supported" : true,
"max_completion_tokens_supported" : false,
"custom_temperature_supported" : true,
"skills_supported" : false,
"reasoning_efforts" : [ ]
},
"defaults" : { },
Expand Down Expand Up @@ -1934,6 +1954,7 @@ void testOpenAiApplicationWithTypeSchemaGet_ReturnedInvalid_WhenAppDoesNotConfor
"max_tokens_supported": true,
"max_completion_tokens_supported": false,
"custom_temperature_supported": true,
"skills_supported": false,
"reasoning_efforts": []
},
"defaults" : { },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void testFeaturesEmbedding(Vertx vertx, VertxTestContext context) {
"assistant_attachments_in_request": false, "mcp" : false,
"chat_completion": false, "responses_api": false,
"max_tokens_supported": true, "max_completion_tokens_supported": false,
"custom_temperature_supported": true, "reasoning_efforts": []
"custom_temperature_supported": true, "skills_supported": false, "reasoning_efforts": []
}
"""));
}
Expand All @@ -84,7 +84,7 @@ void testFeaturesModel(Vertx vertx, VertxTestContext context) {
"assistant_attachments_in_request": false, "mcp" : false,
"chat_completion": true, "responses_api": false,
"max_tokens_supported": true, "max_completion_tokens_supported": false,
"custom_temperature_supported": true, "reasoning_efforts": []
"custom_temperature_supported": true, "skills_supported": false, "reasoning_efforts": []
}
"""));
}
Expand All @@ -101,7 +101,7 @@ void testFeaturesApplication(Vertx vertx, VertxTestContext context) {
"assistant_attachments_in_request": false, "mcp" : false,
"chat_completion": true, "responses_api": false,
"max_tokens_supported": true, "max_completion_tokens_supported": false,
"custom_temperature_supported": true, "reasoning_efforts": []
"custom_temperature_supported": true, "skills_supported": false, "reasoning_efforts": []
}
"""));
}
Expand All @@ -118,7 +118,7 @@ void testFeaturesModelResponsesApi(Vertx vertx, VertxTestContext context) {
"assistant_attachments_in_request": false, "mcp" : false,
"chat_completion": true, "responses_api": true,
"max_tokens_supported": true, "max_completion_tokens_supported": false,
"custom_temperature_supported": true, "reasoning_efforts": []
"custom_temperature_supported": true, "skills_supported": false, "reasoning_efforts": []
}
"""));
}
Expand All @@ -135,7 +135,7 @@ void testFeaturesApplicationResponsesApi(Vertx vertx, VertxTestContext context)
"assistant_attachments_in_request": false, "mcp" : false,
"chat_completion": true, "responses_api": true,
"max_tokens_supported": true, "max_completion_tokens_supported": false,
"custom_temperature_supported": true, "reasoning_efforts": []
"custom_temperature_supported": true, "skills_supported": false, "reasoning_efforts": []
}
"""));
}
Expand All @@ -152,7 +152,7 @@ void testFeaturesModelInterfacesOnly(Vertx vertx, VertxTestContext context) {
"assistant_attachments_in_request": false, "mcp" : false,
"chat_completion": true, "responses_api": true,
"max_tokens_supported": true, "max_completion_tokens_supported": false,
"custom_temperature_supported": true, "reasoning_efforts": []
"custom_temperature_supported": true, "skills_supported": false, "reasoning_efforts": []
}
"""));
}
Expand All @@ -169,7 +169,7 @@ void testFeaturesModelAnthropicInterfaceOnly(Vertx vertx, VertxTestContext conte
"assistant_attachments_in_request": false, "mcp" : false,
"chat_completion": false, "responses_api": false,
"max_tokens_supported": true, "max_completion_tokens_supported": false,
"custom_temperature_supported": true, "reasoning_efforts": []
"custom_temperature_supported": true, "skills_supported": false, "reasoning_efforts": []
}
"""));
}
Expand Down
Loading