mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
[plugins] Flip on additional flags. (#15719)
- [x] Flip on additional flags.
This commit is contained in:
1 parent
0bff38c54a
commit
8c62829a2b
3 files changed
+14
-9
No files matched your search
@@ -2030,8 +2030,7 @@ fn search_tool_requires_model_capability_only() {
|
|||||||
fn tool_suggest_is_not_registered_without_feature_flag() {
|
fn tool_suggest_is_not_registered_without_feature_flag() {
|
||||||
let model_info = search_capable_model_info();
|
let model_info = search_capable_model_info();
|
||||||
let mut features = Features::with_defaults();
|
let mut features = Features::with_defaults();
|
||||||
features.enable(Feature::Apps);
|
features.disable(Feature::ToolSuggest);
|
||||||
features.enable(Feature::Plugins);
|
|
||||||
let available_models = Vec::new();
|
let available_models = Vec::new();
|
||||||
let tools_config = ToolsConfig::new(&ToolsConfigParams {
|
let tools_config = ToolsConfig::new(&ToolsConfigParams {
|
||||||
model_info: &model_info,
|
model_info: &model_info,
|
||||||
|
|||||||
@@ -720,8 +720,8 @@ pub const FEATURES: &[FeatureSpec] = &[
|
|||||||
FeatureSpec {
|
FeatureSpec {
|
||||||
id: Feature::ToolSuggest,
|
id: Feature::ToolSuggest,
|
||||||
key: "tool_suggest",
|
key: "tool_suggest",
|
||||||
stage: Stage::UnderDevelopment,
|
stage: Stage::Stable,
|
||||||
default_enabled: false,
|
default_enabled: true,
|
||||||
},
|
},
|
||||||
FeatureSpec {
|
FeatureSpec {
|
||||||
id: Feature::Plugins,
|
id: Feature::Plugins,
|
||||||
@@ -778,8 +778,8 @@ pub const FEATURES: &[FeatureSpec] = &[
|
|||||||
FeatureSpec {
|
FeatureSpec {
|
||||||
id: Feature::ToolCallMcpElicitation,
|
id: Feature::ToolCallMcpElicitation,
|
||||||
key: "tool_call_mcp_elicitation",
|
key: "tool_call_mcp_elicitation",
|
||||||
stage: Stage::UnderDevelopment,
|
stage: Stage::Stable,
|
||||||
default_enabled: false,
|
default_enabled: true,
|
||||||
},
|
},
|
||||||
FeatureSpec {
|
FeatureSpec {
|
||||||
id: Feature::Personality,
|
id: Feature::Personality,
|
||||||
|
|||||||
@@ -115,9 +115,9 @@ fn request_permissions_tool_is_under_development() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn tool_suggest_is_under_development() {
|
fn tool_suggest_is_stable_and_enabled_by_default() {
|
||||||
assert_eq!(Feature::ToolSuggest.stage(), Stage::UnderDevelopment);
|
assert_eq!(Feature::ToolSuggest.stage(), Stage::Stable);
|
||||||
assert_eq!(Feature::ToolSuggest.default_enabled(), false);
|
assert_eq!(Feature::ToolSuggest.default_enabled(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@@ -138,6 +138,12 @@ fn image_generation_is_under_development() {
|
|||||||
assert_eq!(Feature::ImageGeneration.default_enabled(), false);
|
assert_eq!(Feature::ImageGeneration.default_enabled(), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn tool_call_mcp_elicitation_is_stable_and_enabled_by_default() {
|
||||||
|
assert_eq!(Feature::ToolCallMcpElicitation.stage(), Stage::Stable);
|
||||||
|
assert_eq!(Feature::ToolCallMcpElicitation.default_enabled(), true);
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn image_detail_original_feature_is_under_development() {
|
fn image_detail_original_feature_is_under_development() {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
|
|||||||
Reference in new issue
Block a user