Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3617218359 | ||
|
|
c7a4012831 |
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [2.0.1] - 2026-02-05
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- **Expert agent registration failure** - `AnthropicModel` does not accept `api_key` directly; now passes it via `AnthropicProvider`
|
||||||
|
|
||||||
## [2.0.0] - 2026-02-05
|
## [2.0.0] - 2026-02-05
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "tatlock"
|
name = "tatlock"
|
||||||
version = "2.0.0"
|
version = "2.0.1"
|
||||||
description = "OpenAI-compatible API with Ollama backend"
|
description = "OpenAI-compatible API with Ollama backend"
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.12"
|
||||||
dependencies = []
|
dependencies = []
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ from typing import Union
|
|||||||
|
|
||||||
from pydantic_ai.models.anthropic import AnthropicModel
|
from pydantic_ai.models.anthropic import AnthropicModel
|
||||||
from pydantic_ai.models.openai import OpenAIChatModel
|
from pydantic_ai.models.openai import OpenAIChatModel
|
||||||
|
from pydantic_ai.providers.anthropic import AnthropicProvider
|
||||||
|
|
||||||
from src.core.config import config
|
from src.core.config import config
|
||||||
from src.core.logging_config import get_logger
|
from src.core.logging_config import get_logger
|
||||||
@@ -113,7 +114,7 @@ def get_model(prefer_cloud: bool | None = None) -> Union[AnthropicModel, OpenAIC
|
|||||||
)
|
)
|
||||||
return AnthropicModel(
|
return AnthropicModel(
|
||||||
model_name=config.ANTHROPIC_MODEL,
|
model_name=config.ANTHROPIC_MODEL,
|
||||||
api_key=config.ANTHROPIC_API_KEY,
|
provider=AnthropicProvider(api_key=config.ANTHROPIC_API_KEY),
|
||||||
)
|
)
|
||||||
|
|
||||||
# Fall back to Ollama
|
# Fall back to Ollama
|
||||||
|
|||||||
Reference in New Issue
Block a user