Skip to content

Commit 150c142

Browse files
committed
more
Signed-off-by: Takeshi Yoneda <[email protected]>
1 parent df59b0d commit 150c142

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/dynamic_module/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func init() {
3737
Level: slog.LevelDebug, // Adjust log level from environment variable if needed.
3838
}))
3939
if err := filterapi.StartConfigWatcher(context.Background(),
40-
os.Getenv("AI_GATEWAY_dynamicmodule_FILTER_CONFIG_PATH"), g, logger, time.Second*5); err != nil {
40+
os.Getenv("AI_GATEWAY_DYNAMIC_MODULE_FILTER_CONFIG_PATH"), g, logger, time.Second*5); err != nil {
4141
panic("failed to start filter config watcher: " + err.Error())
4242
}
4343
sdk.NewHTTPFilterConfig = g.newHTTPFilterConfig
@@ -87,21 +87,21 @@ func (g *globalState) initializeEnv() error {
8787
}
8888

8989
endpointPrefixes, err := internalapi.ParseEndpointPrefixes(os.Getenv(
90-
"AI_GATEWAY_dynamicmodule_FILTER_ENDPOINT_PREFIXES",
90+
"AI_GATEWAY_DYNAMIC_MODULE_FILTER_ENDPOINT_PREFIXES",
9191
))
9292
if err != nil {
9393
return fmt.Errorf("failed to parse endpoint prefixes: %w", err)
9494
}
9595

9696
metricsRequestHeaderAttributes, err := internalapi.ParseRequestHeaderAttributeMapping(os.Getenv(
97-
"AI_GATEWAY_dynamicmodule_FILTER_METRICS_REQUEST_HEADER_ATTRIBUTES",
97+
"AI_GATEWAY_DYNAMIC_MODULE_FILTER_METRICS_REQUEST_HEADER_ATTRIBUTES",
9898
))
9999
if err != nil {
100100
return fmt.Errorf("failed to parse metrics header mapping: %w", err)
101101
}
102102

103103
g.env = &dynamicmodule.Env{
104-
RootPrefix: os.Getenv("AI_GATEWAY_dynamicmodule_ROOT_PREFIX"),
104+
RootPrefix: os.Getenv("AI_GATEWAY_DYNAMIC_MODULE_ROOT_PREFIX"),
105105
EndpointPrefixes: endpointPrefixes,
106106
ChatCompletionMetricsFactory: metrics.NewMetricsFactory(meter, metricsRequestHeaderAttributes, metrics.GenAIOperationChat),
107107
MessagesMetricsFactory: metrics.NewMetricsFactory(meter, metricsRequestHeaderAttributes, metrics.GenAIOperationMessages),

0 commit comments

Comments
 (0)