Timeout Property  
 

Sets or returns the maximum number of seconds to wait for a request to complete.

Syntax

object.Timeout [= seconds ]

Remarks

The Timeout property specifies the maximum number of seconds the control will wait for a connection or request to complete before returning an error.

This property determines how long the control will attempt to establish a connection when using the Connect method. If a connection cannot be established within the specified time period, the operation will fail and return an error.

This property also determines how long the control will wait for a response after submitting a message prompt using the Ask or SendMessage method. If the provider does not return a response within the specified time period, the request will fail and the control will report a timeout error.

Some models, particularly reasoning-oriented models or models generating lengthy responses, may require significantly more time to complete a request than traditional web service operations. Applications should avoid setting excessively short timeout values when communicating with cloud-based providers or locally hosted models running on slower hardware.

Changing the value of this property affects subsequent operations and does not modify requests that are already in progress.

Data Type

Integer (Int32)

See Also

Ask Method, Connect Method, SendMessage Method