Skip to content

Commit

Permalink
Ok stan now runs in all places
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Aug 4, 2024
1 parent 4c97595 commit 7b2f64f
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 21 deletions.
3 changes: 1 addition & 2 deletions Modules/LlmDriver/app/OllamaClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,7 @@ public function onQueue(): string
}

/**
* @param MessageInDto[] $messages
* @return array
* @param MessageInDto[] $messages
*/
public function remapMessages(array $messages): array
{
Expand Down
1 change: 0 additions & 1 deletion Modules/LlmDriver/app/Orchestrate.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Illuminate\Support\Facades\Log;
use LlmLaraHub\LlmDriver\Functions\FunctionCallDto;
use LlmLaraHub\LlmDriver\Helpers\CreateReferencesTrait;
use LlmLaraHub\LlmDriver\Requests\MessageInDto;
use LlmLaraHub\LlmDriver\Responses\FunctionResponse;

/**
Expand Down
3 changes: 0 additions & 3 deletions Modules/LlmDriver/tests/Feature/ClaudeClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use LlmLaraHub\LlmDriver\Functions\PropertyDto;
use LlmLaraHub\LlmDriver\Requests\MessageInDto;
use LlmLaraHub\LlmDriver\Responses\CompletionResponse;
use LlmLaraHub\LlmDriver\Responses\EmbeddingsResponseDto;
use Tests\TestCase;

class ClaudeClientTest extends TestCase
Expand All @@ -28,8 +27,6 @@ public function setUp(): void
Setting::factory()->all_have_keys()->create();
}



public function test_completion(): void
{
$client = new ClaudeClient();
Expand Down
2 changes: 1 addition & 1 deletion Modules/LlmDriver/tests/Feature/MockClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function test_tool_with_limit(): void
'content' => 'test',
'role' => 'user',
]),
['search_and_summarize']
['search_and_summarize'],
]);

$this->assertCount(1, $results);
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Chat.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
*/
class Chat extends Model implements HasDrivers
{
use HasFactory;
use HasDriversTrait;
use HasFactory;

protected $guarded = [];

Expand Down
2 changes: 1 addition & 1 deletion app/Models/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
*/
class Collection extends Model implements HasDrivers, TaggableContract
{
use HasFactory;
use HasDriversTrait;
use HasFactory;
use Taggable;

protected $guarded = [];
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
*/
class Document extends Model implements HasDrivers, TaggableContract
{
use HasDriversTrait;
use HasFactory;
use Taggable;
use HasDriversTrait;

protected $guarded = [];

Expand Down
2 changes: 1 addition & 1 deletion app/Models/DocumentChunk.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
*/
class DocumentChunk extends Model implements HasDrivers, TaggableContract
{
use HasDriversTrait;
use HasFactory;
use HasNeighbors;
use HasDriversTrait;
use Taggable;

protected $casts = [
Expand Down
6 changes: 1 addition & 5 deletions app/Models/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

class Message extends Model implements HasDrivers
{
use HasFactory;
use HasDriversTrait;
use HasFactory;

public $fillable = [
'body',
Expand Down Expand Up @@ -183,8 +183,6 @@ public function getChatable(): HasDrivers
return $this->chat->getChatable();
}



public function getChat(): ?Chat
{
return $this->chat;
Expand Down Expand Up @@ -284,6 +282,4 @@ protected function batchJob(array $jobs, Chat $chat, string $function): void
->allowFailures()
->dispatch();
}


}
2 changes: 1 addition & 1 deletion app/Models/Report.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/
class Report extends Model implements HasDrivers
{
use HasFactory;
use HasDriversTrait;
use HasFactory;
use SoftDeletes;

protected $guarded = [];
Expand Down
5 changes: 1 addition & 4 deletions app/Models/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
*/
class Source extends Model implements HasDrivers
{
use HasDriversTrait;
use HasFactory;
use SoftDeletes;
use HasDriversTrait;

protected $guarded = [];

Expand Down Expand Up @@ -50,7 +50,6 @@ public function getPrompt(): string
return $this->details;
}


public function getChatable(): HasDrivers
{
return $this->collection;
Expand Down Expand Up @@ -86,8 +85,6 @@ public function chat(): BelongsTo
return $this->belongsTo(Chat::class);
}



public function getEmbeddingDriver(): string
{
return $this->collection->getEmbeddingDriver();
Expand Down

0 comments on commit 7b2f64f

Please sign in to comment.