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

Add Support Custom api #846

Merged
merged 4 commits into from
Apr 2, 2023
Merged

Commits on Mar 23, 2023

  1. Increase recordings and adjust OpenAI parameters

    - Add GPT3Tokenizer library for tokenization
    - Add a default response when GPT response is empty
    - Add a check for blocked words in GPT response
    - Change temperature parameter to `0.6`
    - Add error handling for OpenAI API request
    - Return OpenAI response as a string
    - Add check for token limit before adding a user or assistant message
    - Delete messages when token limit is exceeded
    
    [src/utils.ts]
    - Add the GPT3Tokenizer library for tokenization
    - Add a function to calculate the number of tokens in a chat message
    - Add a function to check if the number of tokens exceeds the limit for the current model
    [src/bot.ts]
    - Add a default response when the GPT response is empty
    - Add a check for blocked words in the GPT response
    [src/openai.ts]
    - Change the temperature parameter to `0.6`
    - Add error handling for the OpenAI API request
    - Return the OpenAI response as a string
    [package.json]
    - Add `gpt3-tokenizer` package
    [src/data.ts]
    - Add a check for token limit before adding a user or assistant message
    - Delete messages starting from the second one if token limit is exceeded
    - Import `isTokenOverLimit` from `./utils.js`
    - Remove initialization of `initState`
    [package-lock.json]
    - Add `gpt3-tokenizer` package
    - Add `array-keyed-map` package
    - Increase version of `dotenv` package
    - Increase version of `openai` package
    - Increase version of `google-protobuf` package
    - Increase returned recordings from `10` to `100`
    RealTong committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    4d39ea4 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2023

  1. feat: 🎸 Support custom api

    Support custom api
    
    ✅ Closes: #840
    RealTong committed Apr 2, 2023
    Configuration menu
    Copy the full SHA
    15e143b View commit details
    Browse the repository at this point in the history
  2. Fix: Modify readme

    RealTong committed Apr 2, 2023
    Configuration menu
    Copy the full SHA
    b842d11 View commit details
    Browse the repository at this point in the history
  3. 2 Configuration menu
    Copy the full SHA
    8a6844b View commit details
    Browse the repository at this point in the history