Skip to content

Commit cc8245b

Browse files
committed
fix(docs): avoid blog chat CORS default
1 parent a48043f commit cc8245b

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

functions/api/docs-chat.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ type ChatRequestBody = {
2727

2828
const DEFAULT_MODEL = 'gemini-flash-lite-latest'
2929
const DEFAULT_MAX_TOKENS = 1200
30-
const DEFAULT_CORS_ORIGINS = [
31-
'https://notionnext.tangly1024.com',
32-
'https://blog.tangly1024.com'
33-
]
30+
const DEFAULT_CORS_ORIGINS = ['https://notionnext.tangly1024.com']
3431
const MAX_REQUEST_BYTES = 20_000
3532
const MAX_MESSAGES = 6
3633
const MAX_USER_TEXT_CHARS = 1000

0 commit comments

Comments
 (0)