Closed MaxiPigna closed 1 year ago
Have you wired the modules? FYI I'm a noob myself š
Not the most familiar with injection with FastAPI, but you can try with dependency-injector 4.38.0, see here: https://github.com/ets-labs/python-dependency-injector/issues/672
Have you wired the modules? FYI I'm a noob myself š
Correct, I moved the APIs in another module and added
wiring_config = containers.WiringConfiguration(modules=["api.conversations"])
app -llm --container.py --adapter ---input ----api -----v1 ------llm.py
wiring_config = WiringConfiguration(packages=['app']) #not working
wiring_config = WiringConfiguration(packages=['app.llm.adapter.input.api.v1]) #not working
wiring_config = WiringConfiguration(packages=['app.llm.adapter.input.api.v1.llm']) #working ā
path to file(this file is router which contain @injection decoration)
modules argument also working same
Hello folks! I get the error
AttributeError: 'Provide' object has no attribute 'test_message'
This is the codecontainers.py
conversationBaseService.py
conversationService.py
main.py
Library versions: Name: dependency-injector Version: 4.41.0
Name: fastapi Version: 0.100.1
Did I forget to configure something? I checked the documentation, but I didn't find a solution. Actually, the published example doesn't seems to be correct/updated.