MagicRin 在 我独自一人用powershell脚本写了一款 ai,几乎没有配置需求,代码已开源效果媲美 deepseek 中发帖
$listener = New-Object System.Net.HttpListener
$listener.Prefixes.Add('http://*:8080/v1/completions/')
$listener.Start()
while ($true) {
$context = $listener.GetContext()
$response = $context.Response
$response.StatusCode = 503
$buffer = [System.Text.Encoding]::UTF8.GetBytes("服务器繁忙,请稍后重试。")
$response.ContentLength64 = $buffer.Length
$output = $response.OutputStream
$ou...