Skip to content

Commit

Permalink
Make GPT4-Turbo the default
Browse files Browse the repository at this point in the history
  • Loading branch information
sabeechen committed Jan 28, 2024
1 parent 4038d24 commit faddde3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from openai.types.chat.chat_completion_message_param import ChatCompletionMessageParam
GPT3 = 'gpt-3.5-turbo-1106'
GPT4 = 'gpt-4'
GPT4_TURBO = 'gpt-4-1106-preview'
GPT4_TURBO = 'gpt-4-0125-preview'


@dataclass
Expand Down Expand Up @@ -57,9 +57,9 @@ def tokenCount(self, content: Union[str, Dict[str, str], List[Dict[str, str]]])


MODELS: Dict[str, OpenAiModel] = {
GPT3: OpenAiModel(GPT3, "GPT3💲", 0.002 / 1000, 0.001 / 1000, 1024 * 16 - 1, tiktoken.encoding_for_model(GPT3)),
GPT4: OpenAiModel(GPT4, "GPT4💵", 0.06 / 1000, 0.03 / 1000, 1024 * 8 - 1, tiktoken.encoding_for_model(GPT4)),
GPT4_TURBO: OpenAiModel(GPT4_TURBO, "GPT4 Turbo💵", 0.01 / 1000, 0.03 / 1000, 128 * 1000 - 1, tiktoken.encoding_for_model(GPT4_TURBO))
GPT3: OpenAiModel(GPT3, "GPT3", 0.002 / 1000, 0.001 / 1000, 1024 * 16 - 1, tiktoken.encoding_for_model(GPT3)),
GPT4: OpenAiModel(GPT4, "GPT4", 0.06 / 1000, 0.03 / 1000, 1024 * 8 - 1, tiktoken.encoding_for_model(GPT4)),
GPT4_TURBO: OpenAiModel(GPT4_TURBO, "GPT4 Turbo", 0.01 / 1000, 0.03 / 1000, 128 * 1000 - 1, tiktoken.encoding_for_model(GPT4_TURBO))
}

DEFAULT_SYSTEM_MESSAGE = "You are a helpful and concise assistant."
Expand Down
2 changes: 1 addition & 1 deletion server/static/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion server/sw.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ts/app-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class Model {
export class Settings {
determinism = 50;
max_tokens = 1000;
model = 'gpt-4';
model = 'gpt-4-0125-preview';
api_key = '';
prompt = '';
}
Expand Down

0 comments on commit faddde3

Please sign in to comment.