@1mancompany/onemancompany 0.7.61 → 0.7.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/package.json +1 -1
- package/pyproject.toml +1 -1
- package/src/onemancompany/agents/base.py +4 -0
package/README.md
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
<a href="LICENSE"><img src="https://img.shields.io/github/license/1mancompany/OneManCompany" alt="License" /></a>
|
|
16
16
|
<a href="https://github.com/1mancompany/OneManCompany/commits/main"><img src="https://img.shields.io/github/last-commit/1mancompany/OneManCompany" alt="Last commit" /></a>
|
|
17
17
|
<a href="https://discord.gg/B6BfZ9tWa"><img src="https://img.shields.io/discord/1352123168498921472?color=5865F2&label=Discord&logo=discord&logoColor=white" alt="Discord" /></a>
|
|
18
|
+
<a href="wechat.jpg"><img src="https://img.shields.io/badge/WeChat-07C160?logo=wechat&logoColor=white" alt="WeChat" /></a>
|
|
18
19
|
</p>
|
|
19
20
|
|
|
20
21
|
<p align="center">
|
|
@@ -25,6 +26,10 @@
|
|
|
25
26
|
<a href="https://1mancompany.github.io/OneManCompany/">Homepage</a> · <a href="README_zh.md">中文文档</a> · <a href="https://1mancompany.github.io/OneManCompany/docs/">Docs</a> · <a href="https://one-man-company.com">Talent Market</a> · <a href="https://github.com/1mancompany/OneManCompany/issues">Issues</a>
|
|
26
27
|
</p>
|
|
27
28
|
|
|
29
|
+
<p align="right">
|
|
30
|
+
<a href="wechat.jpg"><img src="wechat.jpg" alt="WeChat QR code" width="120" /></a>
|
|
31
|
+
</p>
|
|
32
|
+
|
|
28
33
|
> Others use AI to write code. You use AI to run a company.
|
|
29
34
|
>
|
|
30
35
|
> Linux runs servers. OneManCompany runs companies.
|
package/package.json
CHANGED
package/pyproject.toml
CHANGED
|
@@ -198,9 +198,13 @@ def make_llm(employee_id: str = "", temperature: float | None = None) -> BaseCha
|
|
|
198
198
|
extra_headers = {}
|
|
199
199
|
if auth_method == AuthMethod.OAUTH or effective_key.startswith("sk-ant-oat"):
|
|
200
200
|
extra_headers["anthropic-beta"] = "oauth-2025-04-20"
|
|
201
|
+
base_url = None
|
|
202
|
+
if api_provider == "custom" and settings.default_api_base_url:
|
|
203
|
+
base_url = settings.default_api_base_url
|
|
201
204
|
return ChatAnthropic(
|
|
202
205
|
model=model,
|
|
203
206
|
api_key=effective_key,
|
|
207
|
+
base_url=base_url,
|
|
204
208
|
temperature=effective_temp,
|
|
205
209
|
max_retries=3,
|
|
206
210
|
timeout=300.0,
|