immosquare-translate 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/immosquare-translate/translator.rb +2 -1
- data/lib/immosquare-translate/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71add0a533248479a8a83a8f97c25beaeb8172c1dc7469e49b63b18baa34bf82
|
4
|
+
data.tar.gz: e266dd37a4c21b6d5ee4b9dbe344e24d2dbb3d671a82916412846842957f7051
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b16fb9414e574cbee14da6a5e54f3cf6df8d0bf6430e4d9ab6dcd8b185f21d4987074646ddaa78375c86124e1b73bad89807e1daf51f57dfb9369a5f84c2ca3
|
7
|
+
data.tar.gz: 9931a5bfca8430befcd24e25b1087decd4099e4958039af615fe080da9e962a5b0ea5fc8dbcc054d64df130391f6442f781adb3677784363c6e0cea41c3c3ff4
|
@@ -28,7 +28,8 @@ module ImmosquareTranslate
|
|
28
28
|
|
29
29
|
prompt_system = "As a sophisticated translation AI, your role is to translate sentences from a specified source language to multiple target languages. " \
|
30
30
|
"It is imperative that you return the translations in a single, pure JSON string format. Use ISO 639-1 language codes for specifying languages. " \
|
31
|
-
"
|
31
|
+
"if string is html, you should return the translated html." \
|
32
|
+
"Ensure that the output does not include markdown (```json) or any other formatting characters. Adhere to the JSON structure meticulously."
|
32
33
|
|
33
34
|
|
34
35
|
prompt = "Translate the following sentences from '#{from_iso}' into the languages #{to_iso.join(", ")}, and format the output as a single, pure JSON string. " \
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: immosquare-translate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- IMMO SQUARE
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|