...that we never use. I'm just turning it off for now, but I want the linter to think it could be live at any moment.
This commit is contained in:
parent
71463433e7
commit
e2bd38d665
2 changed files with 5 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ var (
|
||||||
Bind string
|
Bind string
|
||||||
ClientID string
|
ClientID string
|
||||||
ClientSecret string
|
ClientSecret string
|
||||||
|
DoLLMResponse bool
|
||||||
DomainRMO string
|
DomainRMO string
|
||||||
DomainNidus string
|
DomainNidus string
|
||||||
DomainTegola string
|
DomainTegola string
|
||||||
|
|
@ -82,6 +83,7 @@ func Parse() (err error) {
|
||||||
if ClientSecret == "" {
|
if ClientSecret == "" {
|
||||||
return fmt.Errorf("You must specify a non-empty ARCGIS_CLIENT_SECRET")
|
return fmt.Errorf("You must specify a non-empty ARCGIS_CLIENT_SECRET")
|
||||||
}
|
}
|
||||||
|
DoLLMResponse = false
|
||||||
DomainNidus = os.Getenv("DOMAIN_NIDUS")
|
DomainNidus = os.Getenv("DOMAIN_NIDUS")
|
||||||
if DomainNidus == "" {
|
if DomainNidus == "" {
|
||||||
return fmt.Errorf("You must specify a non-empty DOMAIN_NIDUS")
|
return fmt.Errorf("You must specify a non-empty DOMAIN_NIDUS")
|
||||||
|
|
|
||||||
|
|
@ -172,7 +172,9 @@ func respondText(ctx context.Context, log_id int32) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
// Otherwise let the LLM handle the response
|
// Otherwise let the LLM handle the response
|
||||||
//return respondTextLLM(ctx, *src)
|
if config.DoLLMResponse {
|
||||||
|
return respondTextLLM(ctx, *src)
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue