Skip to content
This repository was archived by the owner on Feb 9, 2025. It is now read-only.

Lock down json response #17

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
dotcodegen (0.1.5)
dotcodegen (0.1.6)
dotenv
front_matter_parser
ruby-openai
Expand Down
1 change: 0 additions & 1 deletion lib/dotcodegen/lint_code.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def run
end
end


def standardrb_code
puts "Linting: StandardRB"
system("standardrb --fix-unsafely #{@file_path}")
Expand Down
3 changes: 2 additions & 1 deletion lib/dotcodegen/test_code_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ def initialize(config:, file_to_test_path:, openai_key:, openai_org_id: nil)
def generate_test_code
response = openai_client.chat(
parameters: {
model: 'gpt-4-turbo-preview',
model: 'gpt-4o',
messages: [{ role: 'user', content: test_prompt_text }], # Required.
response_format: { type: "json_object" },
temperature: 0.7
}
)
Expand Down
2 changes: 1 addition & 1 deletion lib/dotcodegen/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Dotcodegen
VERSION = '0.1.5'
VERSION = '0.1.6'
end
Loading