Skip to content

Commit d2983eb

Browse files
committed
2 parents 833acf4 + 027e5ad commit d2983eb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/api/anthropic.ts

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ async function request(req: NextRequest) {
9898
headers: {
9999
"Content-Type": "application/json",
100100
"Cache-Control": "no-store",
101+
"anthropic-dangerous-direct-browser-access": "true",
101102
[authHeaderName]: authValue,
102103
"anthropic-version":
103104
req.headers.get("anthropic-version") ||

app/components/chat.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -520,8 +520,8 @@ export function ChatActions(props: {
520520

521521
// if current model is not available
522522
// switch to first available model
523-
const isUnavaliableModel = !models.some((m) => m.name === currentModel);
524-
if (isUnavaliableModel && models.length > 0) {
523+
const isUnavailableModel = !models.some((m) => m.name === currentModel);
524+
if (isUnavailableModel && models.length > 0) {
525525
// show next model to default model if exist
526526
let nextModel = models.find((model) => model.isDefault) || models[0];
527527
chatStore.updateCurrentSession((session) => {

0 commit comments

Comments
 (0)