diff --git a/package.json b/package.json
index 3d2661d8fe..fc66a19dbb 100755
--- a/package.json
+++ b/package.json
@@ -1,10 +1,10 @@
{
"name": "planet",
"license": "AGPL-3.0",
- "version": "0.14.79",
+ "version": "0.14.80",
"myplanet": {
- "latest": "v0.19.55",
- "min": "v0.18.55"
+ "latest": "v0.19.65",
+ "min": "v0.18.65"
},
"scripts": {
"ng": "ng",
diff --git a/src/app/chat/chat.component.ts b/src/app/chat/chat.component.ts
index f55d64ed6b..2d5a4ef03f 100644
--- a/src/app/chat/chat.component.ts
+++ b/src/app/chat/chat.component.ts
@@ -2,7 +2,6 @@ import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { ChatService } from '../shared/chat.service';
-import { AIServices, ProviderName } from './chat.model';
@Component({
selector: 'planet-chat',
@@ -11,7 +10,7 @@ import { AIServices, ProviderName } from './chat.model';
})
export class ChatComponent implements OnInit {
activeService: string;
- aiServices: { name: ProviderName, value: ProviderName }[] = [];
+ aiServices: { name: string, value: string }[] = [];
displayToggle: boolean;
constructor(
@@ -21,20 +20,11 @@ export class ChatComponent implements OnInit {
) {}
ngOnInit() {
- this.chatService.listAIProviders().subscribe((services: AIServices | null) => {
- if (services) {
- for (const [ key, value ] of Object.entries(services)) {
- if (value === true) {
- this.aiServices.push({
- name: key as ProviderName,
- value: key as ProviderName
- });
- }
- }
- this.activeService = this.aiServices[0].value;
- this.displayToggle = this.aiServices.length > 0;
- this.chatService.toggleAIServiceSignal(this.activeService);
- }
+ this.chatService.listAIProviders().subscribe((providers) => {
+ this.aiServices = providers;
+ this.activeService = this.aiServices[0]?.value;
+ this.displayToggle = this.aiServices.length > 0;
+ this.chatService.toggleAIServiceSignal(this.activeService);
});
}
diff --git a/src/app/courses/step-view-courses/courses-step-view.component.html b/src/app/courses/step-view-courses/courses-step-view.component.html
index 3fc30348ea..1a9813c531 100644
--- a/src/app/courses/step-view-courses/courses-step-view.component.html
+++ b/src/app/courses/step-view-courses/courses-step-view.component.html
@@ -5,7 +5,7 @@
Step {{stepNum}}: {{stepDetail.stepTitle}}
-