You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I am building a library on top of FastAPI: https://github.com/ajndkr/lanarky. The objective is to simplify building FastAPI applications for LLM projects.
There is a new feature request for which I'm trying to understand how it can be implemented. I have shared an example code.
The feature request is to auto-select the pydantic model for request parameter based on chain instance. I have gone through the documentation and haven't been able to decide if this can be solved via dependency injection or creating a custom APIRouter class. I'm not a FastAPI expert, so I'm really eager to brainstorm a bit with the experts here. Any help is appreciated!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
Hello! I am building a library on top of FastAPI: https://github.com/ajndkr/lanarky. The objective is to simplify building FastAPI applications for LLM projects.
There is a new feature request for which I'm trying to understand how it can be implemented. I have shared an example code.
The feature request is to auto-select the pydantic model for
requestparameter based onchaininstance. I have gone through the documentation and haven't been able to decide if this can be solved via dependency injection or creating a customAPIRouterclass. I'm not a FastAPI expert, so I'm really eager to brainstorm a bit with the experts here. Any help is appreciated!Operating System
macOS
Operating System Details
No response
FastAPI Version
0.95.2
Python Version
3.9.16
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions