Skip to content

Commit

Permalink
openAi config fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cawke committed Jun 26, 2024
1 parent 446e324 commit 77d6ac1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Assets/MirageXR/Player/Scripts/RootObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private async Task Initialization() // TODO: create base Manager class
_cameraCalibrationChecker.Initialization();
_platformManager.Initialization();
await _openAIManager.InitializeAsync();
await _aiManager.InitializeAsync();
//await _aiManager.InitializeAsync();
_activityManager.Subscription();

_isInitialized = true;
Expand Down
2 changes: 1 addition & 1 deletion Assets/MirageXR/Scripts/OpenAI/OpenAIManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public async Task InitializeAsync()
try
{
var keys = await ReadOpenIaAuthKeyAsync();
_aiClient = new OpenAIClient(new OpenAIAuthentication(keys));
_aiClient = new OpenAIClient(new OpenAIAuthentication(keys), new OpenAISettings(new OpenAISettingsInfo()));
}
catch (RestException e)
{
Expand Down

0 comments on commit 77d6ac1

Please sign in to comment.