feat: add POST /format endpoint

This commit is contained in:
2026-06-14 06:57:55 -06:00
parent b0a7ac9503
commit 8d40a7b2f0
3 changed files with 49 additions and 1 deletions

View File

@@ -32,3 +32,16 @@ class DebugRequest(BaseModel):
"""调试请求模式,用于调试 Python 代码"""
code: str
inputs: List[str]
class FormatRequest(BaseModel):
"""格式化代码的请求模式"""
code: str
language: str
class FormatResponse(BaseModel):
"""格式化代码的响应模式"""
code: str