mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Refactor model handling and improve timeout functionality
- Removed empty string mapping from model_map in AnyModelProviderMixin. - Updated clean_name function to exclude 'chat' from version patterns. - Added stream_timeout parameter to AsyncGeneratorProvider for more flexible timeout handling. - Enhanced chunk yielding in AsyncAuthedProvider to support stream_timeout, allowing for better control over asynchronous responses.
This commit is contained in:
parent
e09c08969a
commit
1edd0fff17
11 changed files with 682 additions and 586 deletions
|
|
@ -22,6 +22,7 @@ class RequestConfig(BaseModel):
|
|||
proxy: Optional[str] = None
|
||||
conversation: Optional[dict] = None
|
||||
timeout: Optional[int] = None
|
||||
stream_timeout: Optional[int] = None
|
||||
tool_calls: list = Field(default=[], examples=[[
|
||||
{
|
||||
"function": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue