We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87fe6c2 commit 9ebbb12Copy full SHA for 9ebbb12
packages/inference/src/providers/clarifai.ts
@@ -29,10 +29,10 @@ export class ClarifaiConversationalTask extends BaseConversationalTask {
29
}
30
31
override prepareHeaders(params: HeaderParams, isBinary: boolean): Record<string, string> {
32
- const headers: Record<string, string> = {};
33
- if (params.authMethod !== "none") {
34
- headers["Authorization"] = `Key ${params.accessToken}`;
35
- }
+ const headers: Record<string, string> = {
+ Authorization:
+ params.authMethod !== "provider-key" ? `Bearer ${params.accessToken}` : `Key ${params.accessToken}`,
+ };
36
if (!isBinary) {
37
headers["Content-Type"] = "application/json";
38
0 commit comments