NAME
Langertha::Engine::MiniMaxAnthropic - MiniMax API via Anthropic-compatible endpoint (legacy)
VERSION
version 0.500
SYNOPSIS
use Langertha::Engine::MiniMaxAnthropic;
my $minimax = Langertha::Engine::MiniMaxAnthropic->new(
api_key => $ENV{MINIMAX_API_KEY},
model => 'MiniMax-M2.7',
);
print $minimax->simple_chat('Hello from Perl!');
DESCRIPTION
Provides access to MiniMax models via their Anthropic-compatible endpoint at https://api.minimax.io/anthropic/v1.
Historical note: Until version 0.402 this was the default behavior of Langertha::Engine::MiniMax. MiniMax's /anthropic endpoint is a shim over their native OpenAI-compatible API — it does not always re-parse stringified tool-call arguments, which causes intermittent tool-calling failures where the Anthropic SDK sees a wrapper object whose key rotates between result, arguments, and the tool name. For new code prefer Langertha::Engine::MiniMax, which talks to MiniMax's native OpenAI endpoint and avoids the shim. This class is retained for anyone who needs the Anthropic wire format specifically.
See Langertha::Engine::MiniMax for the available models list.
Get your API key at https://platform.minimax.io/ and set LANGERTHA_MINIMAX_API_KEY in your environment.
SEE ALSO
Langertha::Engine::MiniMax - Recommended MiniMax engine (OpenAI-compatible endpoint)
https://platform.minimax.io/docs/api-reference/text-anthropic-api - MiniMax Anthropic API docs
Langertha::Engine::AnthropicBase - Anthropic-compatible base class
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/Getty/langertha/issues.
IRC
Join #langertha on irc.perl.org or message Getty directly.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <getty@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Torsten Raudssus https://raudssus.de/.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.