(api_key string)
| 89 | } |
| 90 | |
| 91 | func generateRefreshToken(api_key string) string { |
| 92 | prefix := "public-token-live-26a89f59-09f8-48be-91ff-ce70e6000cb5:" + api_key |
| 93 | return base64.StdEncoding.EncodeToString([]byte(prefix)) |
| 94 | } |
| 95 | func ChatCompletions(client tls_client.HttpClient, api_request groq.APIRequest, api_key string, organization string, proxy string) (*http.Response, error) { |
| 96 | if proxy != "" { |
| 97 | client.SetProxy(proxy) |