Skip to content

Commit ff440e4

Browse files
committed
chore: update user agent
1 parent c8b852e commit ff440e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

snippets/ai/src/providers/models.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ export const models = {
88
baseURL: 'https://knowledge.mongodb.com/api/v1',
99
apiKey: '',
1010
headers: {
11+
// https://jira.mongodb.org/browse/EAI-1411
1112
'X-Request-Origin': 'mongodb-compass',
1213
'user-agent':
13-
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) MongoDBCompass/1.47.0 Chrome/138.0.7204.251 Electron/37.6.0 Safari/537.36',
14+
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) mongosh/1.47.0 Chrome/138.0.7204.251 Electron/37.6.0 Safari/537.36',
1415
},
1516
fetch: (url, options) => {
1617
return fetch(url, {

0 commit comments

Comments
 (0)