wenjin272 commented on issue #1440: URL: https://github.com/apache/flink-agents/issues/1440#issuecomment-7119835218
Thanks for reporting this and offering to contribute a fix. I would prefer the second approach: remove `| None` from the constructor signatures and keep `request_timeout: float = DEFAULT_REQUEST_TIMEOUT`. Omitting the parameter already provides a clear way to use the default. Accepting `None` as another way to select that default adds an unnecessary convention, especially since `None` means disabling timeouts in clients such as HTTPX. We should also align `OpenAIEmbeddingModelConnection` by removing its `None`-to-default validator. The intended behavior would be consistent across these connections: - Omitted parameter: use the default timeout. - Explicit numeric value: use the supplied value. - Explicit `None`, including YAML `null`: reject it with a validation error. -- 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]
