Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LP 改善 #146

Merged
merged 3 commits into from
Nov 6, 2023
Merged

LP 改善 #146

merged 3 commits into from
Nov 6, 2023

Conversation

tbrand
Copy link
Contributor

@tbrand tbrand commented Nov 1, 2023

@tbrand tbrand changed the title [WIP] LP 改善 LP 改善 Nov 2, 2023
imageGenModelName: process.env.IMAGE_GEN_MODEL_NAME,
}),
};
};
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

無駄に Frontend に読ませる環境変数を増やしたくなかったため、設定をとれる API を生やしました

{!isLoading && !error && setting && (
<>
<div className="flex w-full flex-col items-center text-sm">
<SettingItem name="LLM モデルタイプ" value={setting.modelType} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

「設定情報」の存在に気づかないかなと思いました。
左下にメニュー的なもの用意する、ヘッダ部分にいい感じで表示するという代替案があるかなと思います!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

メニュー的なもの or いい感じにというのがわからないので、具体的に教えてください!設定ボタンつけて独立ページに移行すれば良いですか?

{setting.modelType === 'bedrock' && (
<div className="mt-5 w-2/3 text-xs xl:w-1/3">
ユースケース実行時にエラーになる場合は、必ず{' '}
<span className="font-bold">{setting.modelRegion}</span> にて{' '}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

空文字を使ってスペーシングしていますが、CSSのmarginのほうが良いかなと思いました。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

英単語の前後に半角スペース入れて npm run lint したら勝手にこうなったんですよね。消しておきます。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

なるほど。linterの資料なんですね!

@wadabee wadabee merged commit e0d0b83 into main Nov 6, 2023
1 check passed
@wadabee wadabee deleted the improve-lp branch November 6, 2023 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants