feat: sync remaining channel and relay updates
This commit is contained in:
@@ -136,6 +136,14 @@ func GetClaudeAuthHeader(token string) http.Header {
|
||||
return h
|
||||
}
|
||||
|
||||
func GetClaudeCodeAuthHeader(token string) http.Header {
|
||||
h := http.Header{}
|
||||
h.Add("Authorization", fmt.Sprintf("Bearer %s", token))
|
||||
h.Add("x-api-key", token)
|
||||
h.Add("anthropic-version", "2023-06-01")
|
||||
return h
|
||||
}
|
||||
|
||||
func GetResponseBody(method, url string, channel *model.Channel, headers http.Header) ([]byte, error) {
|
||||
req, err := http.NewRequest(method, url, nil)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user