0wFF (@Fengfeng10)测试key的小工具w 中发帖

Continuing the discussion from OAI怎么还没破产?? 
package main

import (
"bufio"
"bytes"
"fmt"
"net/http"
"os"
"time"
)

func send(k string) bool {
client := &http.Client{
Timeout: 10 * time.Second,
}
b := []byte(`{"model":"gpt-4.1","input":"Hi","max_output_tokens":16}`)
req, err := http.NewRequest("POST", "https://api.openai.com/v1/responses", bytes.NewReader(b))
if err != nil {
fmt.Prin...