Skip to content

Commit 050f589

Browse files
Merge pull request #20 from bootstrapguru/dexor-rename-fixes
Bug Fixes with Dexor Renaming
2 parents 8eba87d + cb937c5 commit 050f589

File tree

10 files changed

+20
-15
lines changed

10 files changed

+20
-15
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# 🤖 Dexor
1+
# 🤖 Dexor (Previously droid.dev)
22

33
Welcome to **Dexor**, your trusty companion for automating and streamlining your development tasks. Dexor is here to help you stay productive by automating repetitive tasks, identifying and fixing bugs, writing comprehensive test cases, and maintaining a consistent codebase. Checkout the [documentation](https://docs.dexors.dev/) to get started!
44

55
Checkout the youtube video [here](https://youtu.be/oLmbafcHCKg)
66

77
<p align="center">
8-
<a href="https://packagist.org/packages/bootstrapguru/dexor"><img src="https://img.shields.io/packagist/dt/bootstrapguru/dexor.svg" alt="Total Downloads" /></a>
9-
<a href="https://packagist.org/packages/bootstrapguru/dexor"><img src="https://img.shields.io/packagist/v/bootstrapguru/dexor.svg?label=stable" alt="Latest Stable Version" /></a>
10-
<a href="https://packagist.org/packages/bootstrapguru/dexor"><img src="https://img.shields.io/packagist/l/bootstrapguru/dexor.svg" alt="License" /></a>
8+
<a href="https://packagist.org/packages/bootstrapguru/droid"><img src="https://img.shields.io/packagist/dt/bootstrapguru/droid.svg" alt="Total Downloads" /></a>
9+
<a href="https://packagist.org/packages/bootstrapguru/droid"><img src="https://img.shields.io/packagist/v/bootstrapguru/droid.svg?label=stable" alt="Latest Stable Version" /></a>
10+
<a href="https://packagist.org/packages/bootstrapguru/droid"><img src="https://img.shields.io/packagist/l/bootstrapguru/droid.svg" alt="License" /></a>
1111
</p>
12-
<img src="https://raw.githubusercontent.com/bootstrapguru/dexor.dev/main/resources/images/dexor.webp">
12+
<img src="https://raw.githubusercontent.com/bootstrapguru/dexor.dev/main/resources/images/droid.webp">
1313

1414
## Documentation
1515

16-
For full documentation, getting started guides, and advanced usage, please visit [docs.dexors.dev](https://docs.dexors.dev/).
16+
For full documentation, getting started guides, and advanced usage, please visit [docs.dexors.dev](https://docs.dexor.dev/).
1717

1818
## License
1919

File renamed without changes.

app/Integrations/Ollama/Requests/ChatRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ public function createDtoFromResponse(Response $response): MessageData
6262
$data = $response->json();
6363
return MessageData::from($data['message'] ?? []);
6464
}
65-
}
65+
}

app/Integrations/OpenAI/Requests/ChatRequest.php

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace App\Integrations\OpenAI\Requests;
44

55
use App\Data\MessageData;
6+
use App\Data\ToolCallData;
67
use App\Models\Thread;
78
use Saloon\Contracts\Body\HasBody;
89
use Saloon\Enums\Method;
@@ -51,7 +52,16 @@ private function formatMessages($assistant): array
5152
public function createDtoFromResponse(Response $response): MessageData
5253
{
5354
$data = $response->json();
54-
$choice = $data['choices'][0] ?? [];
55-
return MessageData::from($choice['message'] ?? []);
55+
$message = $data['choices'][0]['message'] ?? [];
56+
$tools = collect([]);
57+
if (isset($message['tool_calls'])) {
58+
foreach ($message['tool_calls'] as $toolCall) {
59+
$tools->push(ToolCallData::from($toolCall));
60+
}
61+
62+
$message['tool_calls'] = $tools;
63+
}
64+
65+
return MessageData::from($message ?? []);
5666
}
57-
}
67+
}

app/Models/Message.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,4 @@ public function thread()
2626
{
2727
return $this->belongsTo(Thread::class);
2828
}
29-
30-
public function tool()
31-
{
32-
return $this->belongsTo(Tool::class);
33-
}
3429
}

builds/dexor

109 Bytes
Binary file not shown.

builds/droid

-13 MB
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)