Skip to content

Commit

Permalink
other keys
Browse files Browse the repository at this point in the history
  • Loading branch information
kousun12 committed Sep 11, 2024
1 parent 9afe23d commit f1374bf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Substrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ type Configuration = {
export type Secrets = {
openai?: string;
anthropic?: string;
together?: string;
jina?: string;
};

/**
Expand Down Expand Up @@ -82,6 +84,13 @@ export class Substrate {
this.additionalHeaders["x-substrate-anthropic-api-key"] =
secrets.anthropic;
}
if (secrets.together) {
this.additionalHeaders["x-substrate-together-api-key"] =
secrets.together;
}
if (secrets.jina) {
this.additionalHeaders["x-substrate-jina-api-key"] = secrets.jina;
}
}
}

Expand Down

0 comments on commit f1374bf

Please sign in to comment.