Enable per-employee custom third-party LLM endpoint configuration (with CI version-gate fix)#394
Draft
Copilot wants to merge 6 commits into
Draft
Enable per-employee custom third-party LLM endpoint configuration (with CI version-gate fix)#394Copilot wants to merge 6 commits into
Copilot wants to merge 6 commits into
Conversation
Agent-Logs-Url: https://github.com/1mancompany/OneManCompany/sessions/03f41bbf-a33a-4196-b861-5327fe4058ea Co-authored-by: zhengxuyu <20417640+zhengxuyu@users.noreply.github.com>
Agent-Logs-Url: https://github.com/1mancompany/OneManCompany/sessions/03f41bbf-a33a-4196-b861-5327fe4058ea Co-authored-by: zhengxuyu <20417640+zhengxuyu@users.noreply.github.com>
Agent-Logs-Url: https://github.com/1mancompany/OneManCompany/sessions/03f41bbf-a33a-4196-b861-5327fe4058ea Co-authored-by: zhengxuyu <20417640+zhengxuyu@users.noreply.github.com>
Agent-Logs-Url: https://github.com/1mancompany/OneManCompany/sessions/03f41bbf-a33a-4196-b861-5327fe4058ea Co-authored-by: zhengxuyu <20417640+zhengxuyu@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for custom third-party LLM provider configuration
Enable per-employee custom third-party LLM endpoint configuration
May 13, 2026
Collaborator
|
@copilot ci/cd没过 |
Agent-Logs-Url: https://github.com/1mancompany/OneManCompany/sessions/94b66063-fbad-4f55-b1cc-4f51c990da20 Co-authored-by: zhengxuyu <20417640+zhengxuyu@users.noreply.github.com>
Contributor
Author
已定位并修复这次 CI 失败原因: Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Copilot
AI
changed the title
Enable per-employee custom third-party LLM endpoint configuration
Enable per-employee custom third-party LLM endpoint configuration (with CI version-gate fix)
May 13, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Background
PR version > main version, and this branch initially had the same version asmain.What Changed
pyproject.tomlfrom0.7.77to0.7.78so the CI “Version bump check” passes.Key Design Decisions
profile.yaml(api_base_url,custom_chat_class) instead of introducing a parallel config store.provider=custom: employee override → company default.openai/anthropic) at apply time.Files Changed (annotated)
src/onemancompany/core/config.pyEmployeeConfigwithapi_base_urlandcustom_chat_classfor employee-scoped custom provider config.src/onemancompany/core/auth_apply/__init__.pybase_url/chat_classthrough auth dispatch.src/onemancompany/core/auth_apply/api_key.pychat_classvalidation, and made omitted fields non-destructive.src/onemancompany/agents/base.pymake_llmto honor employee-level custombase_urlandchat_classoverrides ahead of company defaults.src/onemancompany/api/routes.pyapi_base_urlandcustom_chat_classin employee detail API response.tests/unit/core/test_auth_apply.pytests/unit/agents/test_base_coverage.pypyproject.toml0.7.77→0.7.78).Type
Review Checklist
Phase 1 — Bug Hunt
Phase 2 — Design Principles (docs/design-principles.md)
except: pass; errors logged,CancelledErrorre-raisednode.status = ...assignmentPhase 3 — Side Effects
Test Plan
.venv/bin/python -m pytest tests/unit/ -x).venv/bin/python -c "from onemancompany.api.routes import router; print('OK')")node -c frontend/app.js)Manual Test Steps
Screenshots
N/A (no UI changes)