Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAI bot: Add system role config with answer limitation #95

Merged
merged 1 commit into from
Mar 18, 2023

Conversation

ufian
Copy link
Contributor

@ufian ufian commented Mar 18, 2023

Problem
Answers of ChatGPT are too long

Solution
The OpenAI API is using system message to define the behavior of answers. This PR is adding definition of answer length as 50 words.

The system message helps set the behavior of the assistant. In the example above, the assistant was instructed with "You are a helpful assistant."

Example
Screenshot 2023-03-18 at 11 11 42 AM

Issue #93

@coveralls
Copy link

Pull Request Test Coverage Report for Build 4456663329

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 81.184%

Totals Coverage Status
Change from base Build 4453632578: 0.03%
Covered Lines: 1989
Relevant Lines: 2450

💛 - Coveralls

@umputun umputun merged commit ffaf0ff into radio-t:master Mar 18, 2023
@ufian ufian deleted the master branch March 21, 2023 22:57
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.

3 participants