Skip to content

Commit

Permalink
fix api output
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Aug 20, 2024
1 parent bd8d439 commit 5071b0c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions Modules/LlmDriver/app/ClaudeClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ public function chat(array $messages): CompletionResponse

$payload = $this->modifyPayload($payload);

put_fixture('error_claude_payload.json', $payload);

$results = $this->getClient()->post('/messages', $payload);

if (! $results->ok()) {
Expand Down
3 changes: 1 addition & 2 deletions app/Http/Resources/SourceResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class SourceResource extends JsonResource
public function toArray(Request $request): array
{

$recurring = $this->getRecurring();
$lastRun = $this->getLastRun();

return [
Expand All @@ -27,7 +26,7 @@ public function toArray(Request $request): array
'collection_id' => $this->collection_id,
'details' => $this->details,
'active' => $this->active ? 'Yes' : 'No',
'recurring' => $recurring,
'recurring' => $this->recurring?->value,
'description' => $this->description,
'slug' => $this->slug,
'last_run' => $lastRun,
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<env name="LARALAMMA_SEARCH_SOURCE" value="mock"/>
<env name="BRAVE_API_TOKEN" value="FOOBAR"/>
<!-- this is a fake token! -->
<env name="OPENAI_API_KEY" value="sk-m8ox9NVgboSLRCr5TESTBXbkFJzP1QGUedbQxGmmuAQWRT"/>
<env name="OPENAI_MOCK" value="true"/>
<env name="QUEUE_CONNECTION" value="sync"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="OPENAI_MOCK" value="true"/>
Expand Down

0 comments on commit 5071b0c

Please sign in to comment.