()
| 12 | ) |
| 13 | |
| 14 | func baseHeader() http.Header { |
| 15 | header := http.Header{} |
| 16 | header.Set("accept", "*/*") |
| 17 | header.Set("accept-language", "zh-CN,zh;q=0.9") |
| 18 | header.Set("content-type", "application/json") |
| 19 | header.Set("origin", "https://groq.com") |
| 20 | header.Set("referer", "https://groq.com/") |
| 21 | header.Set("sec-ch-ua", `"Google Chrome";v="123", "Not:A-Brand";v="8", "Chromium";v="123"`) |
| 22 | header.Set("sec-ch-ua-mobile", "?0") |
| 23 | header.Set("sec-ch-ua-platform", `"Windows"`) |
| 24 | header.Set("sec-fetch-dest", "empty") |
| 25 | header.Set("sec-fetch-mode", "cors") |
| 26 | header.Set("sec-fetch-site", "cross-site") |
| 27 | header.Set("user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36") |
| 28 | return header |
| 29 | } |
| 30 | func GerOrganizationId(client tls_client.HttpClient, api_key string, proxy string) (string, error) { |
| 31 | header := baseHeader() |
| 32 |
no test coverage detected