File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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" ) ||
Original file line number Diff line number Diff 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 ) => {
You can’t perform that action at this time.
0 commit comments