run-llama / llama_parse

Parse files for optimal RAG
https://www.llamaindex.ai
MIT License
3.04k stars 290 forks source link

Unable to run with GPT40 #264

Open aflah02 opened 4 months ago

aflah02 commented 4 months ago

Hi Thanks for the great tool! I was recently trying to use it with GPT4o but I keep getting this error -

Error while parsing the file '/NS/llm-1/work/afkhan/Work/Paper.pdf': Failed to parse the file: <FILE_ID>, status: ERROR

I've removed the actual file id incase it can be misused by others.

This even happens if I supply my own API key.

Here are the code snippets -

No API Key -

from llama_parse import LlamaParse

parser_gpt4o = LlamaParse(
    result_type="markdown",
    # api_key=api_key,
    gpt4o_mode=True,
    split_by_page=True,
    # gpt4o_api_key=OAI_KEY
)

Provided Personal API Key -

from llama_parse import LlamaParse

parser_gpt4o = LlamaParse(
    result_type="markdown",
    # api_key=api_key,
    gpt4o_mode=True,
    split_by_page=True,
    gpt4o_api_key=OAI_KEY
)

I have already set os.environ["LLAMA_CLOUD_API_KEY"] and it works well when I set gpt4o_mode to False

hexapode commented 4 months ago

Could you provide the file / job id. they are linked to your account and can only be accessed when using your own API key.

aflah02 commented 4 months ago

Could you provide the file / job id. they are linked to your account and can only be accessed when using your own API key.

Hey I was parsing this paper https://arxiv.org/abs/2404.12957

aflah02 commented 3 months ago

@hexapode any updates on this?