File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ BYOT controls are available by default. The token is used to:
1313
1414AI chat no longer uses the GitHub PAT. Chat uses a separate OpenRouter API key.
1515
16- - OpenRouter key setup for chat: [ docs/ openrouter-byok.md] ( docs/ openrouter-byok.md)
16+ - OpenRouter key setup for chat: [ openrouter-byok.md] ( openrouter-byok.md )
1717
1818## Privacy and storage behavior
1919
Original file line number Diff line number Diff line change @@ -36,5 +36,5 @@ OpenRouter free models still require an API key.
3636
3737## Related docs
3838
39- - GitHub PAT setup for PR/repository workflows: [ docs/ byot.md] ( docs/ byot.md)
40- - Local storage keys: [ docs/ localstorage-state.md] ( docs/ localstorage-state.md)
39+ - GitHub PAT setup for PR/repository workflows: [ byot.md] ( byot.md )
40+ - Local storage keys: [ localstorage-state.md] ( localstorage-state.md )
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ const isRetryableGotoError = (error: unknown) => {
4545 return false
4646 }
4747
48- return / W e b K i t e n c o u n t e r e d a n i n t e r n a l e r r o r | T e s t t i m e o u t / i. test ( error . message )
48+ return / W e b K i t e n c o u n t e r e d a n i n t e r n a l e r r o r | p a g e \. g o t o : T i m e o u t / i. test ( error . message )
4949}
5050
5151const navigateToApp = async ( page : Page , path : string ) => {
Original file line number Diff line number Diff line change @@ -13,9 +13,14 @@ const sanitizeAssistantContent = value => {
1313 return ''
1414 }
1515
16- return value
17- . replace ( / < \| t o o l _ c a l l _ s t a r t \| > [ \s \S ] * ?< \| t o o l _ c a l l _ e n d \| > / g, '' )
18- . replace ( / < \| t o o l _ c a l l _ s t a r t \| > | < \| t o o l _ c a l l _ e n d \| > / g, '' )
16+ let sanitized = value . replace ( / < \| t o o l _ c a l l _ s t a r t \| > [ \s \S ] * ?< \| t o o l _ c a l l _ e n d \| > / g, '' )
17+
18+ const openToolCallIndex = sanitized . indexOf ( '<|tool_call_start|>' )
19+ if ( openToolCallIndex !== - 1 ) {
20+ sanitized = sanitized . slice ( 0 , openToolCallIndex )
21+ }
22+
23+ return sanitized . replace ( / < \| t o o l _ c a l l _ s t a r t \| > | < \| t o o l _ c a l l _ e n d \| > / g, '' )
1924}
2025
2126export const createChatRequestRunner = ( {
You can’t perform that action at this time.
0 commit comments