diff --git a/src/app/chat/chat.component.html b/src/app/chat/chat.component.html
index 17c655299e..2701f4a0d4 100644
--- a/src/app/chat/chat.component.html
+++ b/src/app/chat/chat.component.html
@@ -3,7 +3,7 @@
AI Chat
- {{service.name}}
+ {{service.name}}
{{activeService}}
diff --git a/src/app/courses/step-view-courses/courses-step-view.component.ts b/src/app/courses/step-view-courses/courses-step-view.component.ts
index 36a02ddbc8..7ea1ff1026 100644
--- a/src/app/courses/step-view-courses/courses-step-view.component.ts
+++ b/src/app/courses/step-view-courses/courses-step-view.component.ts
@@ -78,7 +78,7 @@ export class CoursesStepViewComponent implements OnInit, OnDestroy {
});
this.resourcesService.requestResourcesUpdate(this.parent);
this.chatService.listAIProviders().subscribe((providers) => {
- this.isOpenai = providers.some(provider => provider.value === 'openai');
+ this.isOpenai = providers.some(provider => provider.model === 'openai');
});
}
diff --git a/src/app/shared/chat.service.ts b/src/app/shared/chat.service.ts
index 06b8c6ea58..387be33bb8 100644
--- a/src/app/shared/chat.service.ts
+++ b/src/app/shared/chat.service.ts
@@ -1,12 +1,12 @@
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { BehaviorSubject, Observable, Subject, of } from 'rxjs';
-import { catchError, map, shareReplay } from 'rxjs/operators';
+import { catchError, map } from 'rxjs/operators';
import { environment } from '../../environments/environment';
import { findDocuments, inSelector } from '../shared/mangoQueries';
import { CouchService } from '../shared/couchdb.service';
-import { AIServices } from '../chat/chat.model';
+import { AIServices, AIProvider } from '../chat/chat.model';
@Injectable({
providedIn: 'root'
@@ -22,7 +22,7 @@ import { AIServices } from '../chat/chat.model';
private newChatSelected: Subject = new Subject();
private toggleAIService = new Subject();
private selectedConversationIdSubject = new BehaviorSubject