feat: add Avian as LLM service provider#1015
Open
avianion wants to merge 2 commits intodatalab-to:masterfrom
Open
feat: add Avian as LLM service provider#1015avianion wants to merge 2 commits intodatalab-to:masterfrom
avianion wants to merge 2 commits intodatalab-to:masterfrom
Conversation
Add AvianService for the Avian inference API (https://api.avian.io/v1), an OpenAI-compatible endpoint offering DeepSeek V3.2, Kimi K2.5, GLM-5, and MiniMax M2.5 models. Usage: marker_single input.pdf --llm_service marker.services.avian.AvianService --avian_api_key <key> Configuration options: - avian_api_key: API key (required) - avian_model: model name (default: deepseek-v3.2) - avian_image_format: image format (default: png)
Contributor
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
Author
|
I have read the CLA Document and I hereby sign the CLA |
Author
|
Addressed feedback: corrected minimax-m2.5 token limits in docstring — changed from "1M context" to "200K context, 16K max output" to accurately reflect MiniMax M2.5 (MiniMax-Text-01) capabilities. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AvianServiceas a new LLM service option for the Avian inference API (https://api.avian.io/v1), which is OpenAI-compatibleOpenAIServiceandAzureOpenAIServiceimplementationstests/services/test_service_init.pyAvailable Models
deepseek-v3.2)kimi-k2.5)glm-5)minimax-m2.5)Usage
Configuration
avian_api_keyavian_modeldeepseek-v3.2avian_image_formatpngTest plan
test_llm_aviantotests/services/test_service_init.pyverifying service initialization