mirror of
https://github.com/langgenius/dify.git
synced 2026-01-14 06:07:33 +08:00
add internal ip filter when parse tool schema
This commit is contained in:
parent
e66ef9145b
commit
f6accd8ae2
@ -14,7 +14,7 @@ def test_parse_openapi_to_tool_bundle_operation_id(app):
|
||||
openapi = {
|
||||
"openapi": "3.0.0",
|
||||
"info": {"title": "Simple API", "version": "1.0.0"},
|
||||
"servers": [{"url": "http://localhost:3000"}],
|
||||
"servers": [{"url": "https://api.example.com"}],
|
||||
"paths": {
|
||||
"/": {
|
||||
"get": {
|
||||
@ -60,7 +60,7 @@ def test_parse_openapi_to_tool_bundle_properties_all_of(app):
|
||||
openapi = {
|
||||
"openapi": "3.0.0",
|
||||
"info": {"title": "Simple API", "version": "1.0.0"},
|
||||
"servers": [{"url": "http://localhost:3000"}],
|
||||
"servers": [{"url": "https://api.example.com"}],
|
||||
"paths": {
|
||||
"/api/resource": {
|
||||
"get": {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user