Skip to content

Commit

Permalink
feat: claudeclient adjustment (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
caochengxiang authored Jun 27, 2024
2 parents 2dcd120 + 9e990c8 commit 048dcc6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public class CloudeClient {


@SneakyThrows
public String token() {
public String token(String model) {
GoogleCredentials credentials = GoogleCredentials.fromStream(
new FileInputStream("/tmp/key.json"))
new FileInputStream("/tmp/key-"+model+".json"))
.createScoped(Collections.singleton("https://" + googleUrl + "/auth/cloud-platform"));
// Use the credentials to authenticate and generate an access token
credentials.refreshIfExpired();
Expand Down

0 comments on commit 048dcc6

Please sign in to comment.