-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8692334
commit 0664847
Showing
10 changed files
with
103 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...pps/Configuration/ChatGpt/Module/ClicShoppingAdmin/Config/CH/Params/api_key_anthropic.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
/** | ||
* | ||
* @copyright 2008 - https://www.clicshopping.org | ||
* @Brand : ClicShoppingAI(TM) at Inpi all right Reserved | ||
* @Licence GPL 2 & MIT | ||
* @Info : https://www.clicshopping.org/forum/trademark/ | ||
* | ||
*/ | ||
|
||
namespace ClicShopping\Apps\Configuration\ChatGpt\Module\ClicShoppingAdmin\Config\CH\Params; | ||
|
||
use ClicShopping\OM\HTML; | ||
|
||
class api_key_anthropic extends \ClicShopping\Apps\Configuration\ChatGpt\Module\ClicShoppingAdmin\Config\ConfigParamAbstract | ||
{ | ||
|
||
public $default = ''; | ||
public ?int $sort_order = 33; | ||
public bool $app_configured = true; | ||
|
||
protected function init() | ||
{ | ||
$this->title = $this->app->getDef('cfg_chatgpt_api_key_anthropic_title'); | ||
$this->description = $this->app->getDef('cfg_chatgpt_api_key_anthropic_description'); | ||
} | ||
|
||
public function getInputField() | ||
{ | ||
$value = $this->getInputValue(); | ||
|
||
$input = HTML::passwordField($this->key, $value, 'id="' . $this->key . '" autocomplete="off"'); | ||
|
||
return $input; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...iguration/ChatGpt/languages/english/Module/ClicShoppingAdmin/Config/CH/Params/api_key.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
cfg_chatgpt_api_key_title = Api Key | ||
cfg_chatgpt_api_key_title = Api Key OpenAi | ||
cfg_chatgpt_api_key_description = Please, insert the Api Key (https://platform.openai.com/account/api-keys) |
2 changes: 2 additions & 0 deletions
2
...ChatGpt/languages/english/Module/ClicShoppingAdmin/Config/CH/Params/api_key_anthropic.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cfg_chatgpt_api_key_anthropic_title = Anthropic Api Key | ||
cfg_chatgpt_api_key_anthropic_description = Please, insert the Api Key (https://www.anthropic.com) |
2 changes: 1 addition & 1 deletion
2
...figuration/ChatGpt/languages/french/Module/ClicShoppingAdmin/Config/CH/Params/api_key.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
cfg_chatgpt_api_key_title = Clef Api | ||
cfg_chatgpt_api_key_title = Clef Api OpenAI | ||
cfg_chatgpt_api_key_description = Veuillez insérer la clef API (https://platform.openai.com/account/api-keys) |
2 changes: 2 additions & 0 deletions
2
.../ChatGpt/languages/french/Module/ClicShoppingAdmin/Config/CH/Params/api_key_anthropic.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cfg_chatgpt_api_key_anthropic_title = Clef Api Anthropic | ||
cfg_chatgpt_api_key_anthropic_description = Veuillez insérer la clef API (https://www.anthropic.com) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters