@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api DeepSeek Chat Completion API
@base https://api.deepseek.com
@version 1.0.0
@endpoints 1
@toc chat(1)

@endpoint POST /chat/completions
@required {messages: [map{content!: str, role!: str}], model: str(deepseek-chat/deepseek-reasoner)}
@optional {frequency_penalty: num=0, max_tokens: int=4096, presence_penalty: num=0, response_format: map{type: str}, stop: map, stream: bool, stream_options: map, temperature: num=1, top_p: num=1, tools: [map], tool_choice: map, logprobs: bool, top_logprobs: int}
@returns(200) {id: str, choices: [map], created: int(int64), model: str, system_fingerprint: str, object: str, usage: map}

@end
