runtime error
Exit code: 3. Reason: ed_lifespan async with original_context(app) as maybe_original_state: ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/contextlib.py", line 210, in __aenter__ return await anext(self.gen) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/fastapi/routing.py", line 249, in merged_lifespan async with original_context(app) as maybe_original_state: ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/contextlib.py", line 210, in __aenter__ return await anext(self.gen) ^^^^^^^^^^^^^^^^^^^^^ File "/app/app/main.py", line 48, in lifespan count = await ingest_directory( ^^^^^^^^^^^^^^^^^^^^^^^ File "/app/app/services/rag.py", line 145, in ingest_directory doc, count = await ingest_file( ^^^^^^^^^^^^^^^^^^ File "/app/app/services/rag.py", line 112, in ingest_file await store.add_chunks(texts, metas) File "/app/app/services/store.py", line 194, in add_chunks embeddings = await embed_texts(texts) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/app/services/embeddings.py", line 54, in embed_texts response = await client.embeddings.create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/openai/resources/embeddings.py", line 215, in create return await self._post( ^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 2053, in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 1838, in request raise self._make_status_error_from_response(err.response) from None openai.BadRequestError: Error code: 400 - {'error': {'message': 'you must provide a model parameter', 'type': 'invalid_request_error', 'param': None, 'code': None}} ERROR: Application startup failed. Exiting.
Container logs:
Fetching error logs...