fix: add metadata field to create RAG

This commit is contained in:
the_aceix 2024-05-17 10:45:32 +00:00
parent 09d7001fa5
commit 78180c86be
2 changed files with 2 additions and 0 deletions

View file

@ -170,6 +170,7 @@ func CreateIngressGateway(netid string, nodeid string, ingress models.IngressReq
}
}
node.SetLastModified()
node.Metadata = ingress.Metadata
if node.Metadata == "" {
node.Metadata = "This host can be used for remote access"
}

View file

@ -197,6 +197,7 @@ type HostRelayRequest struct {
type IngressRequest struct {
ExtclientDNS string `json:"extclientdns"`
IsInternetGateway bool `json:"is_internet_gw"`
Metadata string `json:"metadata"`
}
// InetNodeReq - exit node request struct