INNER CODE UNIT · Python

health

simonlin1212/vibe-astock · vr/app.py:75

def health():
    return {"ok": True, "service": "vibe-astock", "version": PRODUCT_VERSION}


class LLMConfig(BaseModel):
    provider: str = ""       # cli-* = 订阅接入(调本机 CLI);其余 = API 接入
    baseURL: str = ""        # 订阅接入时留空
    apiKey: str = ""         # 订阅接入时留空
    model: str


class ChatReq(BaseModel):
    messages: list[dict]
    context: str = ""
    llm: LLMConfig


@app.post("/api/chat")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…