mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
chore: enable namespace tools for Bedrock (#24713)
Client-side namespace tools are now supported by bedrock. Enable `namespace_tools` for the Amazon Bedrock provider while continuing to disable unsupported hosted tools such as image generation and web search.
This commit is contained in:
1 parent
6b4b15a1ed
commit
07a930138f
3 files changed
+13
-13
No files matched your search
@@ -57,7 +57,7 @@ impl ModelProvider for AmazonBedrockModelProvider {
|
||||
|
||||
fn capabilities(&self) -> ProviderCapabilities {
|
||||
ProviderCapabilities {
|
||||
namespace_tools: false,
|
||||
namespace_tools: true,
|
||||
image_generation: false,
|
||||
web_search: false,
|
||||
}
|
||||
@@ -131,7 +131,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn capabilities_disable_unsupported_launch_features() {
|
||||
fn capabilities_disable_unsupported_hosted_tools() {
|
||||
let provider = AmazonBedrockModelProvider::new(
|
||||
ModelProviderInfo::create_amazon_bedrock_provider(/*aws*/ None),
|
||||
);
|
||||
@@ -139,7 +139,7 @@ mod tests {
|
||||
assert_eq!(
|
||||
provider.capabilities(),
|
||||
ProviderCapabilities {
|
||||
namespace_tools: false,
|
||||
namespace_tools: true,
|
||||
image_generation: false,
|
||||
web_search: false,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user