Skip to content

Commit c00c82e

Browse files
committed
chore: add lexicons for system settings
1 parent fb04ee6 commit c00c82e

File tree

2 files changed

+45
-37
lines changed

2 files changed

+45
-37
lines changed

_build/gpm.yaml

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: modAI
2-
version: 0.0.6-alpha
2+
version: 0.0.7-alpha
33
lowCaseName: modai
44
namespace: modAI
55
author: 'John Peca'
@@ -13,17 +13,14 @@ systemSettings:
1313
- key: api.chatgpt.key
1414
type: text-password
1515
area: api
16-
description: "Your API key found at https://platform.openai.com/api-keys"
1716

1817
- key: api.gemini.key
1918
type: text-password
2019
area: api
21-
description: "Your API key found at https://ai.google.dev/gemini-api/docs/api-key"
2220

2321
- key: api.claude.key
2422
type: text-password
2523
area: api
26-
description: "Your API key found at https://console.anthropic.com/settings/keys"
2724

2825
- key: api.custom.key
2926
type: text-password
@@ -35,91 +32,60 @@ systemSettings:
3532
value: openai
3633

3734
- key: global.base.output
38-
name: 'Base Output Instructions'
3935
area: global
4036
type: textarea
4137
value: '- This content will be used inside a web content management system.\n- The output should be usable without editing or modification.\n- This is not a conversation; do not include justification or explanation.\n- When returning results, do not wrap them in anything like quotes.'
42-
description: "This tells the model how to ouptut the results to remove commentary, wrapping quotes, etc."
4338
- key: global.base.prompt
44-
name: 'Base Prompt'
4539
area: global
4640
type: textarea
47-
description: "This is an overall instruction modifier that is added to each API request by default, similar to what you would enter for Customize ChatGPT on their website."
4841
- key: global.max_tokens
49-
name: 'Default Maximum Tokens'
5042
area: global
5143
value: 2048
52-
description: "To manage costs, 1000 tokens is roughly equal to 750 words."
5344
- key: global.model
54-
name: 'Default AI Model'
5545
area: global
5646
value: gpt-4o
57-
description: "The default model for all prompts unless overridden per prompt."
5847
- key: global.temperature
59-
name: 'Default AI Temperature'
6048
area: global
6149
value: 0.7
62-
description: "Higher values like 0.8 will be more random and creative, while values lower than 0.2 will be more focused and deterministic."
6350

6451
- key: res.fields
65-
name: 'Use with MODX Fields'
6652
area: resources
6753
value: 'longtitle,introtext,description,content'
68-
description: 'The default Resource fields to attached modAI generative AI buttons to.'
6954

7055
- key: res.pagetitle.prompt
71-
name: '[[*pagetitle]] Propmt'
7256
area: resources
7357
type: textarea
7458
value: "- You are an SEO expert\n- Your task is to generate a Page Title from from the page content for use as the main H1 tag on the page.\n- The Title shouldn't exceed 60 characters, though shorter is also OK\n- Don't use any HTML or markdown tags"
7559
- key: res.longtitle.prompt
76-
name: '[[*longtitle]] Propmt'
7760
area: resources
7861
type: textarea
7962
value: "- You are an SEO expert\n- Your task is to generate an optimal Meta Title from the page content.\n- The Meta Title can't exceed 70 characters\n- Don't use any HTML or markdown tags\n- Don't wrap the Meta Title in quotes"
80-
description: "Use this for the meta title—also works with SEO Suite."
8163
- key: res.introtext.prompt
82-
name: '[[*introtext]] Prompt'
8364
area: resources
8465
type: textarea
8566
value: "- You are an assistant that summarizes content.\n- Your task is to generate concise summary of the page content.\n- Don't use any HTML or markdown tags"
86-
description: "Use this to generate a summary of the page content—used as starting point for image generation."
8767
- key: res.description.prompt
88-
name: '[[*description]] Prompt'
8968
area: resources
9069
type: textarea
9170
value: "- You are an SEO expert\n- Your task is to generate SEO Meta Description\n- Description can't exceed 155 characters\n- Don't use any HTML or markdown tags"
92-
description: "Use this for the meta description—also works with SEO Suite."
9371

9472
- key: vision.model
95-
name: 'Vision Model'
9673
area: vision
9774
value: gpt-4o-mini
98-
description: "Create text from image inputs. Valid options are o1, gpt-4o, gpt-4o-mini, and gpt-4-turbo."
9975
- key: vision.prompt
100-
name: 'Vision Prompt'
10176
area: vision
10277
value: "Create an optimal alt tag for accessibility for this image that is no longer than 120 characters and not using any punctuation, quotes, or special characters"
103-
description: "By default, this should create a 120 character alt tag based on the vision API output."
10478

10579
- key: image.model
106-
name: 'Image Model'
10780
area: image
10881
value: dall-e-3
109-
description: "Valid options are `dall-e-2` and `dall-e-3` (default). See https://platform.openai.com/docs/guides/images/image-generation-beta for full details including DALL-E-2 specifics."
11082
- key: image.size
111-
name: 'Image Dimensions'
11283
area: image
11384
value: "1792x1024"
114-
description: "Valid options for DALL-E-3 are `1024x1024`, `1792x1024` (default), and `1024x1792`. "
11585
- key: image.quality
116-
name: 'Image Quallity'
11786
area: image
11887
value: standard
119-
description: "Valid options are `standard` (default) and `hd`."
12088

12189
- key: tvs
122-
name: 'Use with Template Variables'
12390
area: tvs
12491
value: ''
125-
description: 'The Template Variable fields to attached modAI generative AI buttons to. Must be a text, textarea, image or Image+ Input Type.'
Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,46 @@
11
<?php
22

3-
$_lang['modai.menu'] = 'modAI';
4-
$_lang['modai.manage.page_title'] = 'modAI';
3+
$_lang['setting_modai.api.chatgpt.key'] = 'ChatGPT API Key';
4+
$_lang['setting_modai.api.chatgpt.key_desc'] = 'Your API key found at https://platform.openai.com/api-keys';
5+
$_lang['setting_modai.api.gemini.key'] = 'Gemini API Key';
6+
$_lang['setting_modai.api.gemini.key_desc'] = 'Your API key found at https://ai.google.dev/gemini-api/docs/api-key';
7+
$_lang['setting_modai.api.claude.key'] = 'Claude API Key';
8+
$_lang['setting_modai.api.claude.key_desc'] = 'Your API key found at https://console.anthropic.com/settings/keys';
9+
$_lang['setting_modai.api.custom.key'] = 'Custom API Key';
10+
$_lang['setting_modai.api.custom.key_desc'] = '';
11+
$_lang['setting_modai.api.custom.url'] = 'Custom API URL';
12+
$_lang['setting_modai.api.custom.url_desc'] = '';
13+
$_lang['setting_modai.api.custom.compatibility'] = 'Custom API Compatibility';
14+
$_lang['setting_modai.api.custom.compatibility_desc'] = 'API compatibility type. Available options: openapi';
15+
$_lang['setting_modai.global.base.output'] = 'Base Output Instructions';
16+
$_lang['setting_modai.global.base.output_desc'] = 'This tells the model how to ouptut the results to remove commentary, wrapping quotes, etc.';
17+
$_lang['setting_modai.global.base.prompt'] = 'Base Prompt';
18+
$_lang['setting_modai.global.base.prompt_desc'] = 'This is an overall instruction modifier that is added to each API request by default, similar to what you would enter for Customize ChatGPT on their website.';
19+
$_lang['setting_modai.global.max_tokens'] = 'Default Maximum Tokens';
20+
$_lang['setting_modai.global.max_tokens_desc'] = 'To manage costs, 1000 tokens is roughly equal to 750 words.';
21+
$_lang['setting_modai.global.model'] = 'Default AI Model';
22+
$_lang['setting_modai.global.model_desc'] = 'The default model for all prompts unless overridden per prompt.';
23+
$_lang['setting_modai.global.temperature'] = 'Default AI Temperature';
24+
$_lang['setting_modai.global.temperature_desc'] = 'Higher values like 0.8 will be more random and creative, while values lower than 0.2 will be more focused and deterministic.';
25+
$_lang['setting_modai.res.fields'] = 'Use with MODX Resource Fields';
26+
$_lang['setting_modai.res.fields_desc'] = 'The default Resource fields to attached modAI generative AI buttons to.';
27+
$_lang['setting_modai.res.pagetitle.prompt'] = '[[*pagetitle]] Propmt';
28+
$_lang['setting_modai.res.pagetitle.prompt_desc'] = '';
29+
$_lang['setting_modai.res.longtitle.prompt'] = '[[*longtitle]] Propmt';
30+
$_lang['setting_modai.res.longtitle.prompt_desc'] = 'Use this for the meta title—also works with SEO Suite.';
31+
$_lang['setting_modai.res.introtext.prompt'] = '[[*introtext]] Prompt';
32+
$_lang['setting_modai.res.introtext.prompt_desc'] = 'Use this to generate a summary of the page content—used as starting point for image generation.';
33+
$_lang['setting_modai.res.description.prompt'] = '[[*description]] Prompt';
34+
$_lang['setting_modai.res.description.prompt_desc'] = 'Use this for the meta description—also works with SEO Suite.';
35+
$_lang['setting_modai.vision.model'] = 'Vision Model';
36+
$_lang['setting_modai.vision.model_desc'] = 'Create text from image inputs. Valid options are o1, gpt-4o, gpt-4o-mini, and gpt-4-turbo.';
37+
$_lang['setting_modai.vision.prompt'] = 'Vision Prompt';
38+
$_lang['setting_modai.vision.prompt_desc'] = 'By default, this should create a 120 character alt tag based on the vision API output.';
39+
$_lang['setting_modai.image.model'] = 'Image Model';
40+
$_lang['setting_modai.image.model_desc'] = 'Valid options are `dall-e-2` and `dall-e-3` (default). See https://platform.openai.com/docs/guides/images/image-generation-beta for full details including DALL-E-2 specifics.';
41+
$_lang['setting_modai.image.size'] = 'Image Dimensions';
42+
$_lang['setting_modai.image.size_desc'] = 'Valid options for DALL-E-3 are `1024x1024`, `1792x1024` (default), and `1024x1792`.';
43+
$_lang['setting_modai.image.quality'] = 'Image Quallity';
44+
$_lang['setting_modai.image.quality_desc'] = 'Valid options are `standard` (default) and `hd`.';
45+
$_lang['setting_modai.tvs'] = 'Use with Template Variables';
46+
$_lang['setting_modai.tvs_desc'] = 'The Template Variable fields to attached modAI generative AI buttons to. Must be a text, textarea, image or Image+ Input Type.';

0 commit comments

Comments
 (0)