Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions python/routes/guest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# 32:0 0:0 1:2
# 32:5 0:0 1:2
# DOC module: guest
# DOC label: Guest Chat
# DOC description: Unauthenticated preview chat endpoint that routes through the currently active provider.
# DOC tier: free
# DOC endpoint: POST /api/v1/guest/chat | Send one guest preview message.
from fastapi import APIRouter, HTTPException
from pydantic import BaseModel

Expand Down Expand Up @@ -42,4 +47,4 @@ async def guest_chat(body: GuestChatBody):
tokens_used = max(10, len(body.message.split()) + len(content.split()))

return {"content": content, "tokens_used": tokens_used}
# 32:0 0:0 1:2
# 32:5 0:0 1:2
Loading