ai_record_finder 0.1.2 → 0.2.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +23 -0
- data/LICENSE +661 -0
- data/README.md +51 -3
- data/docs/HOME.md +4 -4
- data/lib/ai_record_finder/client.rb +10 -58
- data/lib/ai_record_finder/configuration.rb +52 -8
- data/lib/ai_record_finder/errors.rb +3 -0
- data/lib/ai_record_finder/providers/anthropic.rb +52 -0
- data/lib/ai_record_finder/providers/base.rb +99 -0
- data/lib/ai_record_finder/providers/openai.rb +47 -0
- data/lib/ai_record_finder/providers.rb +34 -0
- data/lib/ai_record_finder/version.rb +1 -1
- data/lib/ai_record_finder.rb +1 -0
- data/spec/client_spec.rb +48 -0
- data/spec/configuration_spec.rb +47 -0
- data/spec/providers_spec.rb +298 -0
- metadata +13 -8
- data/LICENSE.txt +0 -21
- data/ai_record_finder-0.1.0.gem +0 -0
- data/ai_record_finder-0.1.1.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c920ccb7ac51e440f5105ebc5152311e6a0e18d93ba2b32bc6fc9b4554dbdb2b
|
|
4
|
+
data.tar.gz: c67c35781cb3655898023ef9e6d0369c5ef60cd19948bc1c8099da1e7bf30115
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e658c53d5f9dc1b5e49b0c115af5615ee89ee1e4bde01ed837389e741ff7cf412b18db3c7914a0723bb4bc68490d39981f040829ccf6069593a38666f9ff1a6
|
|
7
|
+
data.tar.gz: 45e5963566d9d03b2d21f3a44fb630ec27f4d60482d256205abcadb5385fca07e210c7c9f67488e4f35187ed251f0a383665222203bbf4ad99569fd6ccb995b3
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.2.0] - 2026-05-30
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- Multi-provider support. `config.provider` selects the AI backend (`:openai`
|
|
7
|
+
default, or `:anthropic`). The Anthropic adapter speaks the native Messages
|
|
8
|
+
API (`/v1/messages`, `x-api-key` + `anthropic-version` headers, top-level
|
|
9
|
+
`system` prompt, `content`-block responses) rather than the OpenAI-compat
|
|
10
|
+
shim. New config: `provider`, `max_tokens`, `anthropic_version`.
|
|
11
|
+
- `model_name` and `api_base_url` now fall back to per-provider defaults when
|
|
12
|
+
not explicitly set.
|
|
13
|
+
|
|
14
|
+
### Changed (potentially breaking)
|
|
15
|
+
- A missing API key now raises `AIRecordFinder::ConfigurationError` instead of
|
|
16
|
+
`AIRecordFinder::AIResponseError`. Both inherit from `AIRecordFinder::Error`,
|
|
17
|
+
so code rescuing the base `Error` is unaffected; code rescuing
|
|
18
|
+
`AIResponseError` specifically for this case must switch to
|
|
19
|
+
`ConfigurationError` (or the base `Error`).
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
- Endpoint paths are now resolved relative to the configured base URL, so a
|
|
23
|
+
base URL containing a path segment (e.g. `.../v1`) is preserved instead of
|
|
24
|
+
being dropped by a leading-slash request path.
|
|
25
|
+
|
|
3
26
|
## [0.1.0] - 2026-02-19
|
|
4
27
|
|
|
5
28
|
- Initial release
|