Skip to content

docs: Add OpenAI endpoint file:// path limitation (#42)#62

Closed
ThanhNguyxn wants to merge 1 commit intozai-org:mainfrom
ThanhNguyxn:docs/openai-runtime-guide
Closed

docs: Add OpenAI endpoint file:// path limitation (#42)#62
ThanhNguyxn wants to merge 1 commit intozai-org:mainfrom
ThanhNguyxn:docs/openai-runtime-guide

Conversation

@ThanhNguyxn
Copy link

Summary

Adds a documentation note that OpenAI-compatible endpoints (including OpenAI's official API) do not accept file:// paths for image input.

Changes

  • Updated README.md with warning and recommendation to use data:image URIs or SDK
  • Updated README_zh.md with Chinese translation of the same warning

Related to

Fixes #42

Note that OpenAI-compatible endpoints do not accept file:// paths, and recommend using data:image URIs or SDK for local files.
@F0undLinks
Copy link

OpenAI-compatible endpoints (vllm) support the input of local images using the "file:///path/to/img.ipg" format as the URL. You can give it a try yourself. Compared to converting to base64 and then using it as a URL, this method is more convenient.

Copy link

@F0undLinks F0undLinks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

incorrect

@ThanhNguyxn ThanhNguyxn closed this Feb 6, 2026
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.

有5%左右的概率卡主导致无法识别图像

2 participants