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 @@ -59,6 +59,7 @@ func buildCoreBootstrapDocument(mc *v1alpha2.ModelConfig, gwPort int, apiKeyEnv,
return bootstrapDocument{
Gateway: gatewaySection{
Mode: "local",
Bind: "loopback",
Auth: gatewayAuth{Mode: "none"},
Port: gwPort,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ func TestBuildBootstrapJSON_OpenAIAndTelegram(t *testing.T) {
var root map[string]any
require.NoError(t, json.Unmarshal(raw, &root))
require.Contains(t, root, "gateway")
gw := root["gateway"].(map[string]any)
require.Equal(t, "loopback", gw["bind"])
require.Contains(t, root, "models")
require.Contains(t, root, "agents")
models := root["models"].(map[string]any)
Expand Down
1 change: 1 addition & 0 deletions go/core/pkg/sandboxbackend/openshell/openclaw/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type bootstrapDocument struct {

type gatewaySection struct {
Mode string `json:"mode"`
Bind string `json:"bind"`
Auth gatewayAuth `json:"auth"`
Port int `json:"port"`
}
Expand Down
Loading