Use or instead of null coalescing instead since state may return non undefined for new values

This commit is contained in:
Saoud Rizwan
2024-10-08 17:03:42 -04:00
parent 729e32514e
commit ccb4738d7e
3 changed files with 6 additions and 6 deletions

View File

@@ -42,7 +42,7 @@ export class OllamaHandler implements ApiHandler {
getModel(): { id: string; info: ModelInfo } {
return {
id: this.options.ollamaModelId ?? "",
id: this.options.ollamaModelId || "",
info: openAiModelInfoSaneDefaults,
}
}