Skip to content

Commit

Permalink
fix (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
statefb authored Apr 17, 2024
1 parent b2a456d commit bad2502
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
![](https://github.com/aws-samples/bedrock-claude-chat/actions/workflows/cdk.yml/badge.svg)

> [!Tip]
> 🔔**API publication / Admin dashboard feature released.** See [release](https://github.com/aws-samples/bedrock-claude-chat/releases/tag/v0.4.5) for the detail.
> 🔔**Claude3 Opus supported.** As of 04/17/2024, Bedrock only supports the `us-west-2` region. In this repository, Bedrock uses the `us-east-1` region by default. Therefore, if you plan to use it, please change the value of `bedrockRegion` before deployment. For more details, please refer [here](#deploy-using-cdk).
> [!Info]
> We'd like to hear your feedback to implement bot creation permission management feature. The plan is to grant permissions to individual users through the admin panel, but this may increase operational overhead for existing users. [Please take the survey](https://github.com/aws-samples/bedrock-claude-chat/issues/161#issuecomment-2058194533).
> [!Warning]
> The current version (`v0.4.x`) has no compatibility with the previous version (~`v0.3.0`) due to changes in the DynamoDB table schema. **Please note that the UPDATE (i.e. `cdk deploy`) FROM PREVIOUS VERSION TO `v0.4.x` WILL DESTROY ALL OF THE EXISTING CONVERSATIONS.**
Expand Down
6 changes: 5 additions & 1 deletion backend/app/routes/schemas/conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
from pydantic import Field

type_model_name = Literal[
"claude-instant-v1", "claude-v2", "claude-v3-sonnet", "claude-v3-haiku", "claude-v3-opus"
"claude-instant-v1",
"claude-v2",
"claude-v3-sonnet",
"claude-v3-haiku",
"claude-v3-opus",
]


Expand Down
6 changes: 5 additions & 1 deletion backend/app/usecases/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,11 @@ def propose_conversation_title(
user_id: str,
conversation_id: str,
model: Literal[
"claude-instant-v1", "claude-v2", "claude-v3-opus", "claude-v3-sonnet", "claude-v3-haiku"
"claude-instant-v1",
"claude-v2",
"claude-v3-opus",
"claude-v3-sonnet",
"claude-v3-haiku",
] = "claude-v3-haiku",
) -> str:
PROMPT = """Reading the conversation above, what is the appropriate title for the conversation? When answering the title, please follow the rules below:
Expand Down
6 changes: 5 additions & 1 deletion docs/README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
![](https://github.com/aws-samples/bedrock-claude-chat/actions/workflows/test.yml/badge.svg)

> [!Tip]
> 🔔**API 公開/管理ダッシュボードの機能がリリースされました。** 詳細は[Release](https://github.com/aws-samples/bedrock-claude-chat/releases/tag/v0.4.5)をご確認ください。
> 🔔**Claude3 Opus をサポートしました。** 2024/04/17 現在、Bedrock は`us-west-2`のみサポートしています。このリポジトリでは Bedrock はデフォルトで`us-east-1`リージョンを利用します。このため、ご利用される場合はデプロイ前に`bedrockRegion`の値を変更してください。詳細は[こちら](#deploy-using-cdk)
> [!Info]
> ボット作成権限の管理機能実装について、ご意見をお聞かせください。管理者パネルから個別にユーザーに権限を付与する予定ですが、既存ユーザーの皆さんの運用オーバーヘッドが大幅に増加する可能性があります。[アンケートにご協力ください](https://github.com/aws-samples/bedrock-claude-chat/issues/161#issuecomment-2058194533)
> [!Warning]
> 現在のバージョン(v0.4.x)は、DynamoDB テーブルスキーマの変更のため、過去バージョン(~v0.3.0)とは互換性がありません。**以前のバージョンから v0.4.x へアップデートすると、既存の対話記録は全て破棄されますので注意が必要です。**
Expand Down Expand Up @@ -205,6 +208,7 @@ GENERATION_CONFIG = {
### サインアップ可能なメールアドレスのドメインを制限

このサンプルはデフォルトではサインアップ可能なメールアドレスのドメインに制限がありません。特定のドメインのみに限定してサインアップを可能にするには、 `cdk.json` を開き、`allowedSignUpEmailDomains` にリスト形式でドメインを指定してください。

```
"allowedSignUpEmailDomains": ["example.com"],
```
Expand Down

0 comments on commit bad2502

Please sign in to comment.