Skip to content

Commit

Permalink
Add missing method in the ClientInterface.php
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemkose committed Jan 17, 2024
1 parent a382098 commit 369627c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/ClientInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

namespace GeminiAPI;

use CurlHandle;
use GeminiAPI\Enums\ModelName;
use GeminiAPI\Requests\CountTokensRequest;
use GeminiAPI\Requests\EmbedContentRequest;
use GeminiAPI\Requests\GenerateContentRequest;
use GeminiAPI\Requests\GenerateContentStreamRequest;
use GeminiAPI\Responses\CountTokensResponse;
use GeminiAPI\Responses\EmbedContentResponse;
use GeminiAPI\Responses\GenerateContentResponse;
Expand All @@ -27,4 +29,16 @@ public function generativeModel(ModelName $modelName): GenerativeModel;
public function embeddingModel(ModelName $modelName): EmbeddingModel;
public function listModels(): ListModelsResponse;
public function withBaseUrl(string $baseUrl): self;

/**
* @param GenerateContentStreamRequest $request
* @param callable(GenerateContentResponse): void $callback
* @param CurlHandle|null $curl
* @return void
*/
public function generateContentStream(
GenerateContentStreamRequest $request,
callable $callback,
?CurlHandle $curl = null,
): void;
}

0 comments on commit 369627c

Please sign in to comment.