Skip to content

Commit

Permalink
Refactor the ConnectionConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
KATTA-00 committed Aug 21, 2024
1 parent 5b6b81e commit 48cf550
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion examples/Sarcastic-bot/main.bal
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ const VALIDATION_FILEPATH = "./data/" + VALIDATION_FILENAME;

public function main() returns error? {

final finetunes:ConnectionConfig config = {auth: {token}};
final finetunes:ConnectionConfig config = {
auth: {
token
}
};
final finetunes:Client openAIFinetunes = check new finetunes:Client(config, SERVICE_URL);

byte[] trainingFileContent = check io:fileReadBytes(TRAINING_FILEPATH);
Expand Down
6 changes: 5 additions & 1 deletion examples/Sports-headline-analyzer/main.bal
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ string TRAINING_FILEPATH = "./data/" + TRAINING_FILENAME;

public function main() returns error? {

final finetunes:ConnectionConfig config = {auth: {token}};
final finetunes:ConnectionConfig config = {
auth: {
token
}
};
final finetunes:Client openAIFinetunes = check new finetunes:Client(config, SERVICE_URL);

byte[] trainingFileContent = check io:fileReadBytes(TRAINING_FILEPATH);
Expand Down

0 comments on commit 48cf550

Please sign in to comment.