coderpwh 在 我独自一人用kotlin写了一款 ai,对显卡要求极低,代码已开源效果媲美 deepseek 中发帖
我独自一人用kotlin写了一款 ai,对显卡要求极低,代码已开源效果媲美 deepseek
import io.ktor.application.*
import io.ktor.http.*
import io.ktor.response.*
import io.ktor.routing.*
import io.ktor.server.engine.*
import io.ktor.server.netty.*
fun main() {
embeddedServer(Netty, port = 8080) {
routing {
get("/v1/completions") {
call.respond(HttpStatusCode.ServiceUnavailable, "服务器繁忙,请稍后重试")
...