@1mancompany/onemancompany 0.7.59 → 0.7.62
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 +1 -1
- package/package.json +1 -1
- package/pyproject.toml +1 -1
- package/src/onemancompany/agents/base.py +4 -0
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<a href="https://github.com/1mancompany/OneManCompany/stargazers"><img src="https://img.shields.io/github/stars/1mancompany/OneManCompany?style=social" alt="GitHub stars" /></a>
|
|
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
|
-
<a href="https://discord.gg/
|
|
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
18
|
</p>
|
|
19
19
|
|
|
20
20
|
<p align="center">
|
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,
|