Skip to content

Commit

Permalink
this will add a feature flag to functions and ollama for now
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Apr 9, 2024
1 parent 1282021 commit 4643963
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion tests/Feature/OllamaClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function test_chat(): void

public function test_functions_prompt(): void
{
if(!Feature::active('ollama-functions')) {
if (! Feature::active('ollama-functions')) {
$this->markTestSkipped('Feature ollama-functions is not active');
}
$data = get_fixture('ollamas_function_response.json');
Expand Down
3 changes: 0 additions & 3 deletions tests/Feature/OpenAiClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use App\LlmDriver\Requests\MessageInDto;
use App\LlmDriver\Responses\CompletionResponse;
use App\LlmDriver\Responses\EmbeddingsResponseDto;
use Laravel\Pennant\Feature;
use OpenAI\Laravel\Facades\OpenAI;
use OpenAI\Responses\Chat\CreateResponse as ChatCreateResponse;
use OpenAI\Responses\Embeddings\CreateResponse;
Expand Down Expand Up @@ -94,8 +93,6 @@ public function test_chat(): void
public function test_functions_prompt(): void
{



$data = get_fixture('openai_response_with_functions_summarize_collection.json');

$response = [
Expand Down

0 comments on commit 4643963

Please sign in to comment.