Attempt to fix doc deploy (#6337)

This commit is contained in:
mamoodi
2025-01-17 19:16:47 -05:00
committed by GitHub
parent 987861b5e7
commit 532c7cdf02

View File

@@ -21,9 +21,7 @@ class Settings(BaseModel):
def llm_api_key_serializer(self, llm_api_key: SecretStr, info: SerializationInfo):
"""Custom serializer for the LLM API key.
To serialize the API key instead of ********, set expose_secrets to True in the serialization context. For example:
settings.model_dump_json(context={'expose_secrets': True})
To serialize the API key instead of ********, set expose_secrets to True in the serialization context.
"""
context = info.context
if context and context.get('expose_secrets', False):