Skip to content

Commit

Permalink
Merge pull request #188 from tri-star/feature/add-gpt-4-0125-preview
Browse files Browse the repository at this point in the history
Add 'gpt-4-0125-preview'
  • Loading branch information
tri-star authored Mar 4, 2024
2 parents 90cdb41 + a500610 commit ef92216
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## v2.3.0

- Add gpt-4-0125-preview.

## v2.2.0

- You can now select model from gpt-3.5-turbo to gpt-4-1106-preview.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Overview

Your friend living in the sidebar, powered by OpenAI API(from gpt-3.5-turbo to gpt-4-1106-preview).
Your friend living in the sidebar, powered by OpenAI API(from gpt-3.5-turbo to gpt-4-0125-preview).
You can specify the model and temperature, and refer to conversation history(shared between Windows/WSL).

## Requirements
Expand Down Expand Up @@ -43,11 +43,11 @@ The contents of the thread can be saved. The saved contents are shared between W

### Model, temperature

You can specify role, temperature.
You can specify model, temperature.

![](./docs/images/main-feature03.png)

- Role is useful to set the behavior of the bot.
- The model parameter is used to control response quality, speed and character.
- The temperature parameter is used to control the diversity of generated text. This parameter is specified in the range of 0 to 2, and the higher the value, the more diverse the responses generated. On the other hand, the lower the value, the more predictable the responses generated.

---
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "git",
"url": "https://github.com/tri-star/side-buddy"
},
"version": "2.2.0",
"version": "2.3.0",
"engines": {
"vscode": "^1.78.0"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/app/src/domain/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const roleSchema = zod.union([
])

export const modelSchema = zod.union([
zod.literal('gpt-4-0125-preview'),
zod.literal('gpt-4-1106-preview'),
zod.literal('gpt-4'),
zod.literal('gpt-4-32k'),
Expand Down Expand Up @@ -39,6 +40,7 @@ export const chatRoles: ChatRole[] = ['system', 'assistant', 'user']
export type ChatModel = zod.infer<typeof modelSchema>

export const chatModels: ChatModel[] = [
'gpt-4-0125-preview',
'gpt-4-1106-preview',
'gpt-4-32k',
'gpt-4',
Expand Down

0 comments on commit ef92216

Please sign in to comment.