MCPcopy Index your code
hub / github.com/SMNETSTUDIO/Groq2API / baseHeader

Function baseHeader

pkg/groq/request.go:14–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12)
13
14func 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}
30func GerOrganizationId(client tls_client.HttpClient, api_key string, proxy string) (string, error) {
31 header := baseHeader()
32

Callers 4

GerOrganizationIdFunction · 0.85
GetSessionTokenFunction · 0.85
ChatCompletionsFunction · 0.85
GetModelsFunction · 0.85

Calls 1

SetMethod · 0.80

Tested by

no test coverage detected