Skip to content

Commit

Permalink
Merge pull request #63 from ferrislucas/use_gpt-4o
Browse files Browse the repository at this point in the history
Use gpt-4o as the default model
  • Loading branch information
ferrislucas authored May 18, 2024
2 parents 7afa19c + fe97cf6 commit 538a841
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/CliState.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default class CliState {
this.program.option('-t, --template <template>', 'Teplate name, template path, or a url for a template file')
this.program.option('-o, --output-path <outputPath>', 'Path to output file. If no path is specified, output will be printed to stdout.')
this.program.option('-v, --verbose', 'Verbose output')
this.program.option('-m, --model <model>', 'Specify the model to use', 'gpt-4-turbo-preview')
this.program.option('-m, --model <model>', 'Specify the model to use', 'gpt-4o')
this.program.option('-dac, --disable-auto-context', 'Prevents files referenced in the prompt from being automatically included in the context sent to the model.');

this.program.version(version, '--version', 'Display the current version')
Expand Down
2 changes: 1 addition & 1 deletion src/services/OpenAiGptService.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default class OpenAiGptService {

static async call(prompt, model, requestJsonOutput = true) {
if (model == "gpt3") model = "gpt-3.5-turbo";
if (model == "gpt4") model = "gpt-4-turbo-preview";
if (model == "gpt4") model = "gpt-4o";

const configuration = new Configuration({
apiKey: process.env.OPENAI_API_KEY
Expand Down
2 changes: 1 addition & 1 deletion test/OpenAiGptService.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ describe('OpenAiGptService', () => {
const prompt = 'What is the capital of France?';
const expectedResult = 'The capital of France is Paris.';
const models = ['gpt3', 'gpt4'];
const expectedModels = ['gpt-3.5-turbo', 'gpt-4-turbo-preview'];
const expectedModels = ['gpt-3.5-turbo', 'gpt-4o'];

const openaiStub = sinon.stub(OpenAIApi.prototype, 'createChatCompletion').resolves({
data: {
Expand Down

0 comments on commit 538a841

Please sign in to comment.