Diag: add debug logs for API key and URL
This commit is contained in:
parent
c0d90f2ca8
commit
eaee2fb7d7
1 changed files with 2 additions and 0 deletions
|
|
@ -227,6 +227,8 @@ func (p *Provider) Chat(
|
|||
req.Header.Set("User-Agent", p.userAgent)
|
||||
}
|
||||
if p.apiKey != "" {
|
||||
log.Printf("DEBUG: apiKey length: %d", len(p.apiKey))
|
||||
log.Printf("DEBUG: sending request to: %s", req.URL.String())
|
||||
if p.useAzureHeaders {
|
||||
req.Header.Set("api-key", p.apiKey)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue