FEATURE: Add both headers
This commit is contained in:
parent
9c056a44fd
commit
871a26336c
|
@ -17,6 +17,7 @@ module ::DiscourseAi
|
|||
end
|
||||
|
||||
if SiteSetting.ai_hugging_face_tei_api_key.present?
|
||||
headers["X-API-KEY"] = SiteSetting.ai_hugging_face_tei_api_key
|
||||
headers["Authorization"] = "Bearer #{SiteSetting.ai_hugging_face_tei_api_key}"
|
||||
end
|
||||
|
||||
|
@ -43,6 +44,7 @@ module ::DiscourseAi
|
|||
end
|
||||
|
||||
if SiteSetting.ai_hugging_face_tei_reranker_api_key.present?
|
||||
headers["X-API-KEY"] = SiteSetting.ai_hugging_face_tei_reranker_api_key
|
||||
headers["Authorization"] = "Bearer #{SiteSetting.ai_hugging_face_tei_reranker_api_key}"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue