Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemelia committed Jan 28, 2025
1 parent 3892d8a commit cbd747c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/experiments-realm/set-llm-example.gts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class IsolatedTemplate extends Component<typeof SetLlmExample> {
@action
async createRoom() {
let commandContext = this.args.context?.commandContext;
if (!commandContext) return;

let createAIAssistantRoomCommand = new CreateAiAssistantRoomCommand(
commandContext,
Expand All @@ -37,6 +38,8 @@ class IsolatedTemplate extends Component<typeof SetLlmExample> {
if (!this.currentRoomId) return;

let commandContext = this.args.context?.commandContext;
if (!commandContext) return;

let setActiveLLMCommand = new SetActiveLLMCommand(commandContext);

await setActiveLLMCommand.execute({
Expand All @@ -46,20 +49,21 @@ class IsolatedTemplate extends Component<typeof SetLlmExample> {
}

@action
updatemodelId(event: InputEvent) {
updatemodelId(event: Event) {
this.modelId = (event.target as HTMLInputElement).value;
}

<template>
<div class='llm-setter'>
<div class='content'>
<div class='input-section'>
<label>LLM Model Name</label>
<label for='llm-model-name-input'>LLM Model Name</label>
<input
type='text'
value={{this.modelId}}
{{on 'input' this.updatemodelId}}
class='model-input'
id='llm-model-name-input'
/>
</div>

Expand Down

0 comments on commit cbd747c

Please sign in to comment.