Skip to content

Commit

Permalink
Remove unrelated PR to their own
Browse files Browse the repository at this point in the history
  • Loading branch information
navidemad committed Feb 17, 2025
1 parent 186f47f commit 19e0b65
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Unreleased

* Silence parser warning and patch version mismatch for Ruby 3.4.1 [#612](https://github.com/glebm/i18n-tasks/issues/612)
* Silence parser warning and patch version mismatch for Ruby 3.4.x > 3.4.0 [#612](https://github.com/glebm/i18n-tasks/issues/612)
* Append JSON instructions to OpenAI system prompt to be able to use response_format json_object [#615](https://github.com/glebm/i18n-tasks/pull/615)
* Set `log_errors: true` on OpenAI::Client options in order to display HTTP client errors. [#614](https://github.com/glebm/i18n-tasks/pull/614)
* Uses AST-parser for all ERB-files, not just `.html.erb`
Expand Down
1 change: 0 additions & 1 deletion lib/i18n/tasks/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def translation_config # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComp
conf[:deepl_version] = ENV['DEEPL_VERSION'] if ENV.key?('DEEPL_VERSION')
conf[:openai_api_key] = ENV['OPENAI_API_KEY'] if ENV.key?('OPENAI_API_KEY')
conf[:openai_model] = ENV['OPENAI_MODEL'] if ENV.key?('OPENAI_MODEL')
conf[:openai_log_errors] = ENV['OPENAI_LOG_ERRORS'] if ENV.key?('OPENAI_LOG_ERRORS')
conf[:watsonx_api_key] = ENV['WATSONX_API_KEY'] if ENV.key?('WATSONX_API_KEY')
conf[:watsonx_project_id] = ENV['WATSONX_PROJECT_ID'] if ENV.key?('WATSONX_PROJECT_ID')
conf[:watsonx_model] = ENV['WATSONX_MODEL'] if ENV.key?('WATSONX_MODEL')
Expand Down
1 change: 0 additions & 1 deletion lib/i18n/tasks/translators/openai_translator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class OpenAiTranslator < BaseTranslator
Variables (starting with %%{ and ending with }) must not be changed under any circumstance.
Keep in mind the context of all the strings for a more accurate translation.
Return the translations as a JSON object with a 'translations' array containing the translated strings.
It is CRITICAL you output only the result, without any additional information, code block syntax or comments.
PROMPT
JSON_FORMAT_INSTRUCTIONS_SYSTEM_PROMPT = <<~PROMPT.squish
Expand Down

0 comments on commit 19e0b65

Please sign in to comment.