File tree 2 files changed +3
-2
lines changed
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) {
98
98
headers : {
99
99
"Content-Type" : "application/json" ,
100
100
"Cache-Control" : "no-store" ,
101
+ "anthropic-dangerous-direct-browser-access" : "true" ,
101
102
[ authHeaderName ] : authValue ,
102
103
"anthropic-version" :
103
104
req . headers . get ( "anthropic-version" ) ||
Original file line number Diff line number Diff line change @@ -520,8 +520,8 @@ export function ChatActions(props: {
520
520
521
521
// if current model is not available
522
522
// 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 ) {
525
525
// show next model to default model if exist
526
526
let nextModel = models . find ( ( model ) => model . isDefault ) || models [ 0 ] ;
527
527
chatStore . updateCurrentSession ( ( session ) => {
You can’t perform that action at this time.
0 commit comments