Initialisation OpenAI...
Traceback (most recent call last):
File "C:\Users\sxd-i\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\llama_index\core\embeddings\utils.py", line 59, in resolve_embed_model
validate_openai_api_key(embed_model.api_key)
File "C:\Users\sxd-i\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\llama_index\embeddings\openai\utils.py", line 104, in validate_openai_api_key
raise ValueError(MISSING_API_KEY_ERROR_MESSAGE)
ValueError: No API key found for OpenAI.
Please set either the OPENAI_API_KEY environment variable or openai.api_key prior to initialization.
API keys can be found or created at
https://platform.openai.com/account/api-keysDuring handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Projets\IA Chat Local\Sources\LocalIndexation\app.py", line 57, in <module>
embeddings = Settings.embed_model.get_text_embedding(
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sxd-i\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\llama_index\core\settings.py", line 67, in embed_model
self._embed_model = resolve_embed_model("default")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sxd-i\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\llama_index\core\embeddings\utils.py", line 66, in resolve_embed_model
raise ValueError(
ValueError:
**Could not load OpenAI embedding model. If you intended to use OpenAI, please check your OPENAI_API_KEY.
Original error:
No API key found for OpenAI.
Please set either the OPENAI_API_KEY environment variable or openai.api_key prior to initialization.
API keys can be found or created at
https://platform.openai.com/account/api-keysConsider using embed_model='local'.
Visit our documentation for more embedding options:
https://docs.llamaindex.ai/en/stable/module_guides/models/embeddings.html#modules**