Adding Ollama Support

This commit is contained in:
Lucas Bock
2024-10-12 18:44:23 -05:00
parent 1bed63a4af
commit 6e25780b25
53 changed files with 2260 additions and 1079 deletions

View File

@@ -38,7 +38,7 @@ msgstr "<0>I built Reactive Resume mostly by myself during my spare time, with a
msgid "<0>I'm sure the app is not perfect, but I'd like for it to be.</0><1>If you faced any issues while creating your resume, or have an idea that would help you and other users in creating your resume more easily, drop an issue on the repository or send me an email about it.</1>"
msgstr "<0>I'm sure the app is not perfect, but I'd like for it to be.</0><1>If you faced any issues while creating your resume, or have an idea that would help you and other users in creating your resume more easily, drop an issue on the repository or send me an email about it.</1>"
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:126
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:205
msgid "<0>Note: </0>By utilizing the OpenAI API, you acknowledge and accept the <1>terms of use</1> and <2>privacy policy</2> outlined by OpenAI. Please note that Reactive Resume bears no responsibility for any improper or unauthorized utilization of the service, and any resulting repercussions or liabilities solely rest on the user."
msgstr "<0>Note: </0>By utilizing the OpenAI API, you acknowledge and accept the <1>terms of use</1> and <2>privacy policy</2> outlined by OpenAI. Please note that Reactive Resume bears no responsibility for any improper or unauthorized utilization of the service, and any resulting repercussions or liabilities solely rest on the user."
@@ -146,10 +146,6 @@ msgstr "Anyone with the link can view and download the resume."
msgid "Anyone with this link can view and download the resume. Share it on your profile or with recruiters."
msgstr "Anyone with this link can view and download the resume. Share it on your profile or with recruiters."
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:83
msgid "API Key"
msgstr "API Key"
#: apps/client/src/pages/builder/sidebars/left/sections/shared/section-dialog.tsx:124
msgid "Are you sure you want to delete this item?"
msgstr "Are you sure you want to delete this item?"
@@ -209,6 +205,10 @@ msgstr "Backup Code"
msgid "Backup Codes may contain only lowercase letters or numbers, and must be exactly 10 characters."
msgstr "Backup Codes may contain only lowercase letters or numbers, and must be exactly 10 characters."
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:133
msgid "Base URL"
msgstr "Base URL"
#: apps/client/src/pages/builder/sidebars/left/index.tsx:55
msgctxt "The basics section of a resume consists of User's Picture, Full Name, Location etc."
msgid "Basics"
@@ -575,7 +575,7 @@ msgstr "Font Variants"
msgid "For example, information regarding which companies you sent this resume to or the links to the job descriptions can be noted down here."
msgstr "For example, information regarding which companies you sent this resume to or the links to the job descriptions can be noted down here."
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:107
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:186
msgid "Forget"
msgstr "Forget"
@@ -914,10 +914,18 @@ msgstr "March 2023 - Present"
msgid "Margin"
msgstr "Margin"
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:159
msgid "Max Tokens"
msgstr "Max Tokens"
#: apps/client/src/pages/home/sections/features/index.tsx:48
msgid "MIT License"
msgstr "MIT License"
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:146
msgid "Model"
msgstr "Model"
#: apps/client/src/pages/auth/register/page.tsx:98
#: apps/client/src/pages/builder/sidebars/left/dialogs/custom-section.tsx:58
#: apps/client/src/pages/builder/sidebars/left/dialogs/interests.tsx:48
@@ -961,6 +969,10 @@ msgstr "Note: This will make your account less secure."
msgid "Notes"
msgstr "Notes"
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:101
msgid "Ollama Integration"
msgstr "Ollama Integration"
#: apps/client/src/pages/auth/verify-otp/page.tsx:82
msgid "One-Time Password"
msgstr "One-Time Password"
@@ -982,13 +994,17 @@ msgstr "Open"
msgid "Open Source"
msgstr "Open Source"
#: apps/client/src/services/openai/change-tone.ts:30
#: apps/client/src/services/openai/fix-grammar.ts:28
#: apps/client/src/services/openai/improve-writing.ts:28
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:120
msgid "OpenAI / Ollama API Key"
msgstr "OpenAI / Ollama API Key"
#: apps/client/src/services/openai/change-tone.ts:34
#: apps/client/src/services/openai/fix-grammar.ts:32
#: apps/client/src/services/openai/improve-writing.ts:32
msgid "OpenAI did not return any choices for your text."
msgstr "OpenAI did not return any choices for your text."
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:52
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:77
#: apps/client/src/pages/home/sections/features/index.tsx:52
msgid "OpenAI Integration"
msgstr "OpenAI Integration"
@@ -1213,6 +1229,14 @@ msgstr "Rounded"
msgid "Save Changes"
msgstr "Save Changes"
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:180
msgid "Save Locally"
msgstr "Save Locally"
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:180
msgid "Saved"
msgstr "Saved"
#: apps/client/src/pages/dashboard/settings/_dialogs/two-factor.tsx:168
msgid "Scan the QR code below with your authenticator app to setup 2FA on your account."
msgstr "Scan the QR code below with your authenticator app to setup 2FA on your account."
@@ -1376,18 +1400,10 @@ msgstr "Statistics"
msgid "Statistics are available only for public resumes."
msgstr "Statistics are available only for public resumes."
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:101
msgid "Store Locally"
msgstr "Store Locally"
#: apps/client/src/pages/dashboard/settings/_dialogs/two-factor.tsx:162
msgid "Store your backup codes securely"
msgstr "Store your backup codes securely"
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:101
msgid "Stored"
msgstr "Stored"
#: apps/client/src/pages/builder/sidebars/left/dialogs/awards.tsx:101
#: apps/client/src/pages/builder/sidebars/left/dialogs/certifications.tsx:95
#: apps/client/src/pages/builder/sidebars/left/dialogs/custom-section.tsx:128
@@ -1433,10 +1449,14 @@ msgstr "Testimonials"
msgid "Text Color"
msgstr "Text Color"
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:25
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:26
msgid "That doesn't look like a valid OpenAI API key."
msgstr "That doesn't look like a valid OpenAI API key."
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:30
msgid "That doesn't look like a valid URL"
msgstr "That doesn't look like a valid URL"
#: apps/client/src/pages/dashboard/settings/_sections/security.tsx:34
msgid "The passwords you entered do not match."
msgstr "The passwords you entered do not match."
@@ -1660,7 +1680,11 @@ msgstr "You can add multiple keywords by separating them with a comma or pressin
msgid "You can also enter your username."
msgstr "You can also enter your username."
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:54
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:105
msgid "You can integrate with Ollama simply by setting the API key to `sk-1234567890abcdef` and the Base URL to your Ollama URL, i.e. `http://localhost:11434/v1`. You can also pick and choose models and set the max tokens."
msgstr "You can integrate with Ollama simply by setting the API key to `sk-1234567890abcdef` and the Base URL to your Ollama URL, i.e. `http://localhost:11434/v1`. You can also pick and choose models and set the max tokens."
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:79
msgid "You can make use of the OpenAI API to help you generate content, or improve your writing while composing your resume."
msgstr "You can make use of the OpenAI API to help you generate content, or improve your writing while composing your resume."
@@ -1668,7 +1692,7 @@ msgstr "You can make use of the OpenAI API to help you generate content, or impr
msgid "You can track the number of views your resume has received, or how many people have downloaded the resume by enabling public sharing."
msgstr "You can track the number of views your resume has received, or how many people have downloaded the resume by enabling public sharing."
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:60
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:85
msgid "You have the option to <0>obtain your own OpenAI API key</0>. This key empowers you to leverage the API as you see fit. Alternatively, if you wish to disable the AI features in Reactive Resume altogether, you can simply remove the key from your settings."
msgstr "You have the option to <0>obtain your own OpenAI API key</0>. This key empowers you to leverage the API as you see fit. Alternatively, if you wish to disable the AI features in Reactive Resume altogether, you can simply remove the key from your settings."
@@ -1685,7 +1709,7 @@ msgstr "You've got mail!"
msgid "Your account and all your data has been deleted successfully. Goodbye!"
msgstr "Your account and all your data has been deleted successfully. Goodbye!"
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:116
#: apps/client/src/pages/dashboard/settings/_sections/openai.tsx:195
msgid "Your API key is securely stored in the browser's local storage and is only utilized when making requests to OpenAI via their official SDK. Rest assured that your key is not transmitted to any external server except when interacting with OpenAI's services."
msgstr "Your API key is securely stored in the browser's local storage and is only utilized when making requests to OpenAI via their official SDK. Rest assured that your key is not transmitted to any external server except when interacting with OpenAI's services."