MULTIMODAL_ERROR when using GPT-5 from Azure OpenAI #526

Open
opened 2026-02-16 00:18:09 -05:00 by yindo · 0 comments
Owner

Originally created by @galvangoh on GitHub (Sep 4, 2025).

Describe the bug
When passing in custom gpt-5 azure models into LlamaParse, the following error occured.

JobFailedException: Job ID: 62c051c9-b392-47d7-ae56-fafef46ba5f9 failed with status: ERROR, Error code: MULTIMODAL_ERROR, Error message: Error rate is 1.0. Page errors:

  • Page 1: 400 Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.

Job ID
62c051c9-b392-47d7-ae56-fafef46ba5f9

Client:

  • Python Library (llama-cloud-services-0.6.63)

Additional context

# define LlamaParse default settings 
parser_params = {
    'api_key': LLAMA_CLOUD_API_KEY,
    'show_progress': True,
    'verbose': False,
    'adaptive_long_table': True,
    'do_not_cache': True,
    'invalidate_cache': True,
    'skip_diagonal_text': True,
    'high_res_ocr': True,
    'parse_mode': 'parse_page_with_lvm',
    'azure_openai_api_version': azure_openai_api_version,
    'azure_openai_deployment_name': azure_openai_api_deployment_name,
    'azure_openai_endpoint': azure_openai_api_endpoint,
    'azure_openai_key': azure_openai_api_key,
}

# instantiate parser with extra info
parser = LlamaParse(**parser_params)
extra_info = {"file_name": doc_name}

result = parser.parse(bytes, extra_info)
Originally created by @galvangoh on GitHub (Sep 4, 2025). **Describe the bug** When passing in custom gpt-5 azure models into LlamaParse, the following error occured. JobFailedException: Job ID: 62c051c9-b392-47d7-ae56-fafef46ba5f9 failed with status: ERROR, Error code: MULTIMODAL_ERROR, Error message: Error rate is 1.0. Page errors: - Page 1: 400 Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead. **Job ID** 62c051c9-b392-47d7-ae56-fafef46ba5f9 **Client:** - Python Library (llama-cloud-services-0.6.63) **Additional context** ``` # define LlamaParse default settings parser_params = { 'api_key': LLAMA_CLOUD_API_KEY, 'show_progress': True, 'verbose': False, 'adaptive_long_table': True, 'do_not_cache': True, 'invalidate_cache': True, 'skip_diagonal_text': True, 'high_res_ocr': True, 'parse_mode': 'parse_page_with_lvm', 'azure_openai_api_version': azure_openai_api_version, 'azure_openai_deployment_name': azure_openai_api_deployment_name, 'azure_openai_endpoint': azure_openai_api_endpoint, 'azure_openai_key': azure_openai_api_key, } # instantiate parser with extra info parser = LlamaParse(**parser_params) extra_info = {"file_name": doc_name} result = parser.parse(bytes, extra_info) ```
yindo added the bug label 2026-02-16 00:18:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama_cloud_services#526