Skip to content

feat: add env SUMMARIZATION_MODEL to specify summarization model on the server side#3288

Closed
nanaya-tachibana wants to merge 2 commits intoChatGPTNextWeb:mainfrom
nanaya-tachibana:nanaya/summarization-model
Closed

feat: add env SUMMARIZATION_MODEL to specify summarization model on the server side#3288
nanaya-tachibana wants to merge 2 commits intoChatGPTNextWeb:mainfrom
nanaya-tachibana:nanaya/summarization-model

Conversation

@nanaya-tachibana
Copy link
Copy Markdown
Contributor

@nanaya-tachibana nanaya-tachibana commented Nov 16, 2023

The idea originated from the discussion with @H0llyW00dzZ in #3260.

This patch can be useful when using custom models. Similar to the idea of #2583, user can use SUMMARIZATION_MODEL to specify a cheap and fast model for summarization while using a powerful model for chat.

  • when both SUMMARIZATION_MODEL and CUSTOM_MODELS are not set, gpt-3.5-turbo will be sent to client and be used for summarization. This is the same as the current logic.
  • if SUMMARIZATION_MODEL is set, the value will be used.
  • if SUMMARIZATION_MODEL is not set but CUSTOM_MODELS is set, "" will be sent to client and session model will be used on the client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant