-
Notifications
You must be signed in to change notification settings - Fork 603
✨ Feat: support user to configurate model concurrency limit and timeout seconds #2943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
d52afea
解决冲突
xuyaqist 75e72f6
修改sql脚本名称
xuyaqist d1cf0cb
Bugfix: ssl_verify causing different result in check embedding model …
xuyaqist be804d9
Feat: support user to configurate model concurrency limit
xuyaqist 1bec7c2
修改sql脚本名称
xuyaqist b4ec310
优化名称/变量名称重复提示
xuyaqist c486148
Bugfix: when creating an embedding modal, embedding_dimension_check l…
xuyaqist 7618eea
Bugfix: fix the published agent version need at least one tool
xuyaqist 5d511a8
Bugfix: unify agent unavaliable reason
xuyaqist 741b6f2
Bugfix: use STARTTLS (TLS upgrade) when using port 587 to send email
xuyaqist b031356
新增haotian知识库路由
xuyaqist 65a7c51
修复前端
xuyaqist 764df4d
为nexent-config挂载证书,令容器内的 Python 应用使用宿主机的 CA 证书来验证外部 SMTP 服务器的 SSL 证书
xuyaqist 3682d6b
修复模型健康检查报错
xuyaqist e38dce1
区分send email针对是否跳过证书校验的逻辑
xuyaqist d53ab23
区分sender_email和和sender_name
xuyaqist a4c17f0
修复无法获取昊天知识库列表的问题
xuyaqist 0635864
Create a session with trust_env=False to ignore proxy environment var…
xuyaqist 842f312
设置generate_title为非流式接口
xuyaqist 9091a81
Revert "设置generate_title为非流式接口"
xuyaqist ba85471
"设置generate_title为非流式接口"
xuyaqist 64dc284
设置authorization字段也为密码展示
xuyaqist 680f5c7
如果是公共知识库,设置默认id
xuyaqist 9d6fe0c
新增并发数量的限制
xuyaqist d7c5bdf
Bugfix: Resolve frontend cache issue when only one model is available
xuyaqist c33b368
修复循环依赖的问题
xuyaqist 626f263
Bugfix: Prevent overwriting of agent name and variable name when gene…
xuyaqist 9b59e72
Bugfix: Immediately show login page on 401 response
xuyaqist 7c0ff33
Revert "Bugfix: Immediately show login page on 401 response"
xuyaqist dfe69ee
Bugfix: Remove invalid concurrency_limit related code from OpenAIModel
xuyaqist b7c5b82
优化代码,修复单元测试
xuyaqist 6d6c6df
修改单元测试
xuyaqist ac75390
修改单元测试
xuyaqist 6d63acb
修改单元测试
xuyaqist ad4a25f
修改单元测试
xuyaqist 81b6928
修改单元测试
xuyaqist d13c107
修改单元测试
xuyaqist 42b28b8
修改单元测试
xuyaqist 0981e36
Merge branch 'develop' into xyq/feat_add_model_timeout
xuyaqist 1764954
Merge branch 'develop' into xyq/feat_add_model_timeout
xuyaqist 4f3c6c6
删除使用宿主机的证书
xuyaqist f6eefe5
修改sql
xuyaqist 05226b3
修改UT
xuyaqist 90a41f0
修改默认昊天公共知识库Id
xuyaqist b073df4
修改单元测试
xuyaqist 9e05f77
删除单元测试
xuyaqist 15fe84f
使用DefaultHttpxClient而非httpx.client
xuyaqist 6237459
删除不存在的函数
xuyaqist 6ed26ec
修改单元测试
xuyaqist 2bfd1f8
修改单元测试
xuyaqist 8bb6137
Merge branch 'develop' into xyq/feat_add_model_timeout
xuyaqist File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| """ | ||
| Agent Unavailable Reason Constants | ||
|
|
||
| Centralized definition of all possible reasons why an agent may be unavailable. | ||
| These values are returned to the frontend via the 'unavailable_reasons' field. | ||
| """ | ||
|
|
||
|
|
||
| class AgentUnavailableReason: | ||
| """Reason codes for agent unavailability.""" | ||
|
|
||
| # Identity conflicts | ||
| DUPLICATE_NAME = "duplicate_name" | ||
| DUPLICATE_DISPLAY_NAME = "duplicate_display_name" | ||
|
|
||
| # Model issues | ||
| MODEL_NOT_CONFIGURED = "model_not_configured" | ||
| MODEL_UNAVAILABLE = "model_unavailable" | ||
|
|
||
| # Tool issues | ||
| TOOL_UNAVAILABLE = "tool_unavailable" | ||
| ALL_TOOLS_DISABLED = "all_tools_disabled" | ||
|
|
||
| # Agent issues | ||
| AGENT_NOT_FOUND = "agent_not_found" | ||
|
|
||
| @classmethod | ||
| def all_reasons(cls) -> list[str]: | ||
| """Return all defined unavailable reason codes.""" | ||
| return [ | ||
| cls.DUPLICATE_NAME, | ||
| cls.DUPLICATE_DISPLAY_NAME, | ||
| cls.MODEL_NOT_CONFIGURED, | ||
| cls.MODEL_UNAVAILABLE, | ||
| cls.TOOL_UNAVAILABLE, | ||
| cls.ALL_TOOLS_DISABLED, | ||
| cls.AGENT_NOT_FOUND, | ||
| ] | ||
|
|
||
| @classmethod | ||
| def is_valid_reason(cls, reason: str) -> bool: | ||
| """Check if a reason string is a valid reason code.""" | ||
| return reason in cls.all_reasons() | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.