Skip to content

fix: ImageConverter crashes when LLM API call fails - #1945

Open
hanhan761 wants to merge 1 commit into
microsoft:mainfrom
hanhan761:fix-1942-image-converter-llm-crash
Open

fix: ImageConverter crashes when LLM API call fails#1945
hanhan761 wants to merge 1 commit into
microsoft:mainfrom
hanhan761:fix-1942-image-converter-llm-crash

Conversation

@hanhan761

Copy link
Copy Markdown

Fixes #1942

Wrap the OpenAI API call in _get_llm_description() in a try/except block
so that auth errors, rate limits, timeouts, and other API failures are
handled gracefully instead of crashing the entire conversion pipeline.

Fixes microsoft#1942
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ImageConverter crashes when LLM API call fails (auth error, rate limit, etc.)

1 participant