mirror of
https://github.com/laoxong/nofx.git
synced 2026-06-04 09:58:22 +08:00
feat: enhance token estimation and context limit handling in strategy configurations
This commit is contained in:
@@ -392,6 +392,9 @@ func (client *Client) String() string {
|
||||
client.Provider, client.Model)
|
||||
}
|
||||
|
||||
// BaseClient returns the underlying *Client (satisfies ClientEmbedder interface).
|
||||
func (c *Client) BaseClient() *Client { return c }
|
||||
|
||||
// IsRetryableError determines if error is retryable (network errors, timeouts, etc.)
|
||||
func (client *Client) IsRetryableError(err error) bool {
|
||||
errStr := err.Error()
|
||||
|
||||
Reference in New Issue
Block a user