[PR #20] [CLOSED] 新增base_client设置请求超时 #100

Closed
opened 2026-02-27 01:56:13 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ErlichLiu/DeepClaude/pull/20
Author: @GowayLee
Created: 2/7/2025
Status: Closed

Base: mainHead: dev


📝 Commits (4)

  • 90efdcc feat: base_client增加timeout设置
  • e5d2608 refactor: 删除剩余deepseek provider残留
  • eb76e5c Merge branch 'main' into dev
  • 8a674b7 Merge branch 'ErlichLiu:main' into dev

📊 Changes

3 files changed (+80 additions, -28 deletions)

View changed files

📝 app/clients/base_client.py (+70 -19)
📝 app/clients/deepseek_client.py (+1 -2)
📝 app/deepclaude/deepclaude.py (+9 -7)

📄 Description

主要更改

  • base_client.py中增加time_out设置 #17
  • deepclaude.py deepseek_client.py中删除剩余的DEEPSEEK_PROVIDER相关变量(已弃用)

更改说明

1. base_client.py

  • 使用aiohttp.ClientTimeout设定请求超时. base_client实例化时赋有成员变量DEFAULT_TIMEOUT作为默认超时. _make_request方法支持aiohttp.ClientTimeout类型参数传入.
  • 代码重构, 使用aiohttp.TCPConnector优化连接池.

2. deepclaude.py deepseek_client.py

删除剩余的DEEPSEEK_PROVIDER相关变量.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ErlichLiu/DeepClaude/pull/20 **Author:** [@GowayLee](https://github.com/GowayLee) **Created:** 2/7/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `dev` --- ### 📝 Commits (4) - [`90efdcc`](https://github.com/ErlichLiu/DeepClaude/commit/90efdccc6d03f5245c4c40dc808e2a6abbc74a45) feat: base_client增加timeout设置 - [`e5d2608`](https://github.com/ErlichLiu/DeepClaude/commit/e5d2608b1b003a5583a93a5faed9a4922285c8db) refactor: 删除剩余deepseek provider残留 - [`eb76e5c`](https://github.com/ErlichLiu/DeepClaude/commit/eb76e5c1a487ae55a6dc0290a96180fd799b81b3) Merge branch 'main' into dev - [`8a674b7`](https://github.com/ErlichLiu/DeepClaude/commit/8a674b7fa09e6baf6cba545e0747170b2254a51a) Merge branch 'ErlichLiu:main' into dev ### 📊 Changes **3 files changed** (+80 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `app/clients/base_client.py` (+70 -19) 📝 `app/clients/deepseek_client.py` (+1 -2) 📝 `app/deepclaude/deepclaude.py` (+9 -7) </details> ### 📄 Description ## 主要更改 - 在`base_client.py`中增加time_out设置 #17 - 在`deepclaude.py` `deepseek_client.py`中删除剩余的`DEEPSEEK_PROVIDER`相关变量(已弃用) ## 更改说明 ### 1. `base_client.py` - 使用`aiohttp.ClientTimeout`设定请求超时. `base_client`实例化时赋有成员变量`DEFAULT_TIMEOUT`作为默认超时. `_make_request`方法支持`aiohttp.ClientTimeout`类型参数传入. - 代码重构, 使用`aiohttp.TCPConnector`优化连接池. ### 2. `deepclaude.py` `deepseek_client.py` 删除剩余的`DEEPSEEK_PROVIDER`相关变量. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 01:56:13 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/DeepClaude#100
No description provided.