Popis
Tento plugin zajišťuje integraci služby Anthropic do sady PHP AI Client SDK. Umožňuje webům WordPress využívat modely Claude od společnosti Anthropic k generování textu a dalším funkcím umělé inteligence.
Funkce:
- Generování textu pomocí modelů Claude
- Podpora volání funkcí
- Rozšířená podpora uvažování
- Automatická registrace poskytovatele
Dostupné modely jsou dynamicky vyhledávány prostřednictvím rozhraní API Anthropic, včetně modelů Claude pro generování textu s podporou multimodálních vstupů.
Požadavky:
- PHP 7.4 nebo novější
- WordPress 7.0 or higher
- Klíč k API služby Anthropic
Instalace
- Nahrajte soubory pluginu do adresáře
/wp-content/plugins/ai-provider-for-anthropic/ - Plugin aktivujte v nabídce „Pluginy“ ve WordPressu
- On WordPress 7.0 and above, add your Anthropic API key under Settings > Connectors. Alternatively, on any supported WordPress version, provide the key via the
ANTHROPIC_API_KEYenvironment variable or PHP constant
Nejčastější dotazy
-
Jak získám klíč k API služby Anthropic?
-
Navštivte Anthropic Console, kde si můžete vytvořit účet a vygenerovat klíč API.
-
Funguje tento plugin i bez PHP AI Client?
-
No. This plugin provides the Anthropic-specific implementation that the PHP AI Client uses. WordPress 7.0 and above include the PHP AI Client, so nothing else needs to be installed. On WordPress 6.9, the wordpress/php-ai-client package must be installed separately.
-
Why do I see „It was not possible to connect to the provider using this key“?
-
When you save a key under Settings > Connectors, WordPress checks it by requesting the list of available models from the Anthropic API. This message is shown whenever that request fails, whatever the reason. Common causes are:
- The key was mistyped, copied with extra characters, or has been revoked in the Anthropic Console.
- The server cannot reach
api.anthropic.com, for example because of a firewall, a proxy, or the network setup of a local development environment. - The request took longer than the default WordPress HTTP timeout of 5 seconds.
- The Anthropic API was temporarily unavailable.
To find out which one applies, run the same request from the server or container that runs WordPress, replacing
YOUR_API_KEYwith your key:curl -sS -m 5 https://api.anthropic.com/v1/models -H "x-api-key: YOUR_API_KEY" -H "anthropic-version: 2023-06-01"If this returns a list of models, the key and the connection both work. Otherwise the output shows whether the key was rejected or the API could not be reached.
Recenze
Pro tento plugin nejsou žádné recenze.
Autoři
AI Provider for Anthropic je otevřený software. Následující lidé přispěli k vývoji tohoto pluginu.
SpolupracovníciPlugin „AI Provider for Anthropic“ byl přeložen do 23 jazyků. Děkujeme všem překladatelům za jejich pomoc.
Přeložte “AI Provider for Anthropic” do svého jazyka.
Zajímá vás vývoj?
Prohledejte kód, podívejte se do SVN repozitáře, nebo se přihlaste k odběru protokolu vývoje pomocí RSS.
Přehled změn
1.0.6 – 2026-12-03
Změněno
- Updated setup and FAQ documentation for Connectors API-key configuration, key precedence, and connection troubleshooting (#56).
- Bump WordPress tested-up-to version 7.2 (#58).
- Bump WordPress minimum supported version to 7.0 (#58).
Opraveno
- Support Anthropic Agent Skills by ignoring code-execution results, merging custom tools, and preserving containers when resuming paused turns (#26).
- Flatten top-level
oneOf,anyOf, andallOfin tool input schemas to prevent Anthropic requests from failing (#43). - Report server tool usage, such as web search request counts, in the result’s additional data (#46).
- Restored corrupted metadata for four development dependencies in
composer.lock, resolving Composer installation conflicts (#49). - Defaulted
max_tokensto the model’s output limit (capped at 16,000) instead of a fixed 4,096 when no limit is configured, and reported the limit that was actually sent inTokenLimitReachedException(#55).
1.0.5 – 2026-10-01
Změněno
- Throw
TokenLimitReachedExceptionwhen the Anthropic API stops withmax_tokensormodel_context_window_exceeded, instead of silently returning a truncated result (#4). - Added a WordPress Playground preview blueprint (#40).
Opraveno
- Preserved extended thinking signatures across conversation turns, preventing „thinking.signature: Field required“ errors on multi-turn conversations (#31).
- Continued turns that stop with
pause_turninstead of returning a truncated result (#32). - Made model sorting robust to empty regex matches and tested compatibility with PHP AI Client 1.3.1 (#34).
- Anthropic thinking-token usage is now reported via thoughtTokens, with totals preserved and paused-turn continuations accumulated correctly (#44).
1.0.4 – 17. srpna 2026
Změněno
- Aktualizováno na verzi WordPressu 7.1 #35.
Opraveno
- Byla opravena metadata modelů pro Claude Opus 4.7 a novější verze, včetně modelů Claude 5, takže při automatickém výběru modelů již nejsou uváděny nepodporované parametry vzorkování #25.
- Normalizoval jsem prázdné argumenty volání nástrojů jako objekty JSON, čímž jsem zabránil chybám API Anthropic při opakovaném provádění volání nástrojů, která nepřijímají žádné argumenty #23.
1.0.3 – 2026-05-13
- Pokud je verze klienta vyšší než 1.3.0, přidejte do metadat logo poskytovatele (#18).
1.0.2 – 2026-03-04
- Přidat soubory z adresáře pluginů od @shaunandrews na https://github.com/WordPress/ai-provider-for-anthropic/pull/10
- Přidat značku „connector“ do souboru readme.txt (autor: @jeffpaul) v repozitáři https://github.com/WordPress/ai-provider-for-anthropic/pull/12
- Přidat popis poskytovatele od @felixarntz na stránce https://github.com/WordPress/ai-provider-for-anthropic/pull/13
1.0.1 – 2026-02-23
- První vydání pluginu
- Podpora modelů pro generování textu v jazyce Claude
- Podpora volání funkcí
- Rozšířená podpora uvažování
1.0.0 – 2026-02-11
- První vydání balíčku Composer
