ChenZiHong-Gavin commented on PR #122:
URL: 
https://github.com/apache/incubator-hugegraph-ai/pull/122#issuecomment-2520799874

   After using lib pydantic-settings, when we use the base model `Config`, the 
selected value will be determined in the following order of priority (from 
highest to lowest):
   1. Parameters passed in the CLI if cli_parse_args is enabled.
   2. Parameters passed to the Settings class initializer.
   3. Environment variables
   4. Variables loaded from the dotenv (.env) file.
   5. Variables loaded from the secrets directory.(We may make api_key secret 
later maybe)
   6. Default field values of the Config model.
   
   refer: 
https://docs.pydantic.org.cn/latest/concepts/pydantic_settings/#field-value-priority


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to