mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-16 15:15:55 -04:00
✨ Add support for @app.vibe() (#15280)
This commit is contained in:
1 parent
6ee87478d8
commit
70580da818
5 files changed
+133
-1
No files matched your search
@@ -0,0 +1,12 @@
|
||||
from typing import Any
|
||||
|
||||
from fastapi import FastAPI
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
||||
@app.vibe(
|
||||
"/vibe/",
|
||||
prompt="pls return json of users from database. make no mistakes",
|
||||
)
|
||||
async def ai_vibes(body: Any): ...
|
||||
Reference in new issue
Block a user