Add support for @app.vibe() (#15280)

This commit is contained in:
Sebastián Ramírez
2026-04-01 18:16:24 +02:00
committed by GitHub
parent 6ee87478d8
commit 70580da818
5 changed files with 133 additions and 1 deletions

View File

@@ -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): ...