Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
c8cc678
start implementing streaming
julien-nc May 1, 2026
c084a0f
use direct curl for streaming, parse the stream and yield intermediat…
julien-nc May 1, 2026
f989413
track quota usage of streamed response
julien-nc May 1, 2026
547d0d7
warn about effects of using curl directly
julien-nc May 1, 2026
f03722a
add small tests showing that streaming does not fully work with IClient
julien-nc May 4, 2026
3d83973
use IClient that now progressively writes the stream response body
julien-nc May 4, 2026
8c9ea5e
factorize, harmonize stream/non-stream results
julien-nc May 7, 2026
1c03cf8
add comments
julien-nc May 8, 2026
3cc5ef5
start using ISynchronousProgressiveProvider
julien-nc May 18, 2026
861d116
cleanup
julien-nc May 20, 2026
b405cc9
fix psalm and cs issues
julien-nc May 20, 2026
bb6c4d7
read smaller chunks of the streaming response to allow higher update …
julien-nc May 21, 2026
bd0a127
bump min and max NC versions to 35
julien-nc May 21, 2026
aacbc30
add optional input in providers to toggle streaming
julien-nc May 26, 2026
f3b7484
add streaming support for context write and reformulate
julien-nc May 26, 2026
bcc76ec
add streaming support for analyse image, change tone, translate and c…
julien-nc May 26, 2026
0647874
adjust to changes in ISynchronousProgressiveProvider, use new preferS…
julien-nc May 27, 2026
f38bd03
add support for reasoning_content in streamed and non-streamed API re…
julien-nc May 27, 2026
acc1fac
adjust to recent changes in server: use ISynchronousOptionsProvider a…
julien-nc May 28, 2026
858026e
rename ISynchronousOptionsProvider to ISynchronousOptionsAwareProvider
julien-nc Jun 2, 2026
9a30a13
reduce the streaming chunk size to reduce time to first token
julien-nc Jun 2, 2026
abf0078
fix php lint issue, a stub was outdated
julien-nc Jun 2, 2026
b673f61
adjust to latest server changes
julien-nc Jun 3, 2026
4a7dfe5
fix tests
julien-nc Jun 5, 2026
eddfb58
load the stubs in the tests
julien-nc Jun 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Learn more about the Nextcloud Ethical AI Rating [in our blog](https://nextcloud
<screenshot>https://github.com/nextcloud/integration_openai/raw/main/img/screenshot3.jpg</screenshot>
<screenshot>https://github.com/nextcloud/integration_openai/raw/main/img/screenshot4.jpg</screenshot>
<dependencies>
<nextcloud min-version="33" max-version="34"/>
<nextcloud min-version="35" max-version="35"/>
</dependencies>
<background-jobs>
<job>OCA\OpenAi\Cron\CleanupQuotaDb</job>
Expand Down
4 changes: 1 addition & 3 deletions lib/Db/QuotaRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
use OCP\DB\Types;
use ReturnTypeWillChange;

/**
* @method int getType()
Expand Down Expand Up @@ -41,8 +40,7 @@ public function __construct() {
$this->addType('pool', Types::INTEGER);
}

#[ReturnTypeWillChange]
public function jsonSerialize() {
public function jsonSerialize(): array {
return [
'id' => $this->getId(),
'type' => $this->getType(),
Expand Down
4 changes: 1 addition & 3 deletions lib/Db/QuotaUsage.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
use OCP\DB\Types;
use ReturnTypeWillChange;

/**
* @method string getUserId()
Expand Down Expand Up @@ -46,8 +45,7 @@ public function __construct() {
$this->addType('pool', Types::INTEGER);
}

#[ReturnTypeWillChange]
public function jsonSerialize() {
public function jsonSerialize(): array {
return [
'id' => $this->getId(),
'user_id' => $this->getUserId(),
Expand Down
4 changes: 1 addition & 3 deletions lib/Db/QuotaUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
use OCP\DB\Types;
use ReturnTypeWillChange;

/**
* @method int getRuleId()
Expand All @@ -34,8 +33,7 @@ public function __construct() {
$this->addType('entity_id', Types::STRING);
}

#[ReturnTypeWillChange]
public function jsonSerialize() {
public function jsonSerialize(): array {
return [
'id' => $this->getId(),
'rule_id' => $this->getRuleId(),
Expand Down
Loading
Loading