gusye1234 / nano-graphrag

A simple, easy-to-hack GraphRAG implementation
MIT License
1.66k stars 160 forks source link

Model limitation #84

Open qhlx opened 1 month ago

qhlx commented 1 month ago

openai.NotFoundError: Error code: 404 - {'error': {'message': 'The model gpt-4o does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}} I use the example code, but it seems that I can't use get-4o.

rangehow commented 1 month ago

Which file are you running?

qhlx commented 1 month ago
截屏2024-10-22 15 43 16

this one,thanks

qhlx commented 1 month ago

I think the problem is that got-4o is not free, so I can't use it.

rangehow commented 1 month ago

Yes, openai api requires payment. You may need to set API_KEY before requesting it. Or you can try local llm following instruction in /example

qhlx commented 1 month ago

ok, thanks

qhlx commented 1 month ago

Sorry, I meet another question. I run the no_openai_key_at_all.py.

截屏2024-10-22 17 54 25
gusye1234 commented 1 month ago

Do you have a ollama running at backend?

qhlx commented 1 month ago

I run the qwen2.5, and it return this consequence in the console, is that correct?

截屏2024-10-23 12 05 41
gusye1234 commented 1 month ago

Sure