Skip to content

Commit

Permalink
Merge pull request #103 from nextcloud/enh/noid/move-settings-to-ai-s…
Browse files Browse the repository at this point in the history
…ection

Move personal and admin settings to AI sections
  • Loading branch information
julien-nc authored May 30, 2024
2 parents 71c4839 + b69d191 commit a680dc7
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 106 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ Learn more about the Nextcloud Ethical AI Rating [in our blog](https://nextcloud

### Admin settings

There is a "Connected accounts" **admin** settings section where you can:
There is a "Artificial intelligence" **admin** settings section where you can:
* Choose whether you use OpenAI, a LocalAI instance or another remote service
* Set a global API key (or basic auth credentials) for the Nextcloud instance
* Configure default models and quota settings

### Personal settings

There is a "Connected accounts" **personal** settings section to let users set their personal API key or basic auth credentials.
There is a "Artificial intelligence" **personal** settings section to let users set their personal API key or basic auth credentials.
Users can also see their quota information there.
2 changes: 0 additions & 2 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ Learn more about the Nextcloud Ethical AI Rating [in our blog](https://nextcloud
</background-jobs>
<settings>
<admin>OCA\OpenAi\Settings\Admin</admin>
<admin-section>OCA\OpenAi\Settings\AdminSection</admin-section>
<personal>OCA\OpenAi\Settings\Personal</personal>
<personal-section>OCA\OpenAi\Settings\PersonalSection</personal-section>
</settings>
</info>
2 changes: 1 addition & 1 deletion lib/Settings/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function getForm(): TemplateResponse {
}

public function getSection(): string {
return 'connected-accounts';
return 'ai';
}

public function getPriority(): int {
Expand Down
50 changes: 0 additions & 50 deletions lib/Settings/AdminSection.php

This file was deleted.

2 changes: 1 addition & 1 deletion lib/Settings/Personal.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function getForm(): TemplateResponse {
}

public function getSection(): string {
return 'connected-accounts';
return 'ai';
}

public function getPriority(): int {
Expand Down
50 changes: 0 additions & 50 deletions lib/Settings/PersonalSection.php

This file was deleted.

0 comments on commit a680dc7

Please sign in to comment.