Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit 3a07f39

Browse files
mongodbenBen Perlmutterhschawe
authored
Support 50 user messages in Responses API convo (#869)
* support 50 user messages in convo:wq * revert docs change * Update docs/docs/server/openapi.yaml Co-authored-by: Helen Schawe <71039431+hschawe@users.noreply.github.com> --------- Co-authored-by: Ben Perlmutter <mongodben@mongodb.com> Co-authored-by: Helen Schawe <71039431+hschawe@users.noreply.github.com>
1 parent 7d32084 commit 3a07f39

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

docs/docs/server/openapi.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,8 @@ components:
504504
Including `previous_response_id` in the request causes the model
505505
to use the previous response as context.
506506
507+
Note that conversations support a maximum of 50 `user` messages. If you want to append more messages, create a new conversation with the previous content consolidated.
508+
507509
Usage notes:
508510
- You can only use `previous_response_id` if `store: true`.
509511
- All requests on the same conversation must have the same `user` ID leave it undefined.
@@ -812,7 +814,7 @@ components:
812814
file_id:
813815
type: string
814816
description: |
815-
ID of the verified answer.
817+
ID of the verified answer.
816818
filename:
817819
type: string
818820
enum: [verified_answer]

packages/chatbot-server-mongodb-public/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ export const config: AppConfig = {
465465
}),
466466
supportedModels: ["mongodb-chat-latest"],
467467
maxOutputTokens: 4000,
468-
maxUserMessagesInConversation: 6,
468+
maxUserMessagesInConversation: 50,
469469
alwaysAllowedMetadataKeys: [
470470
"ip",
471471
"origin",

0 commit comments

Comments
 (0)