Skip to content

deployment_chat

fastagency.studio.app.deployment_chat async #

deployment_chat(deployment_uuid: str) -> dict[str, Any]
Source code in fastagency/studio/app.py
@app.post("/deployment/{deployment_uuid}/chat")
async def deployment_chat(deployment_uuid: str) -> dict[str, Any]:
    found_model = await DefaultDB.backend().find_model(model_uuid=deployment_uuid)
    team_name = found_model["json_str"]["name"]
    team_uuid = found_model["json_str"]["team"]["uuid"]

    return {
        "team_status": "inprogress",
        "team_name": team_name,
        "team_uuid": team_uuid,
        "conversation_name": "New Chat",
    }