Skip to content

Commit

Permalink
Merge pull request #20 from bootstrapguru/dexor-rename-fixes
Browse files Browse the repository at this point in the history
Bug Fixes with Dexor Renaming
  • Loading branch information
vijaythecoder authored Jul 15, 2024
2 parents 8eba87d + cb937c5 commit 050f589
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 15 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# 🤖 Dexor
# 🤖 Dexor (Previously droid.dev)

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!

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

<p align="center">
<a href="https://packagist.org/packages/bootstrapguru/dexor"><img src="https://img.shields.io/packagist/dt/bootstrapguru/dexor.svg" alt="Total Downloads" /></a>
<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>
<a href="https://packagist.org/packages/bootstrapguru/dexor"><img src="https://img.shields.io/packagist/l/bootstrapguru/dexor.svg" alt="License" /></a>
<a href="https://packagist.org/packages/bootstrapguru/droid"><img src="https://img.shields.io/packagist/dt/bootstrapguru/droid.svg" alt="Total Downloads" /></a>
<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>
<a href="https://packagist.org/packages/bootstrapguru/droid"><img src="https://img.shields.io/packagist/l/bootstrapguru/droid.svg" alt="License" /></a>
</p>
<img src="https://raw.githubusercontent.com/bootstrapguru/dexor.dev/main/resources/images/dexor.webp">
<img src="https://raw.githubusercontent.com/bootstrapguru/dexor.dev/main/resources/images/droid.webp">

## Documentation

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

## License

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion app/Integrations/Ollama/Requests/ChatRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ public function createDtoFromResponse(Response $response): MessageData
$data = $response->json();
return MessageData::from($data['message'] ?? []);
}
}
}
16 changes: 13 additions & 3 deletions app/Integrations/OpenAI/Requests/ChatRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Integrations\OpenAI\Requests;

use App\Data\MessageData;
use App\Data\ToolCallData;
use App\Models\Thread;
use Saloon\Contracts\Body\HasBody;
use Saloon\Enums\Method;
Expand Down Expand Up @@ -51,7 +52,16 @@ private function formatMessages($assistant): array
public function createDtoFromResponse(Response $response): MessageData
{
$data = $response->json();
$choice = $data['choices'][0] ?? [];
return MessageData::from($choice['message'] ?? []);
$message = $data['choices'][0]['message'] ?? [];
$tools = collect([]);
if (isset($message['tool_calls'])) {
foreach ($message['tool_calls'] as $toolCall) {
$tools->push(ToolCallData::from($toolCall));
}

$message['tool_calls'] = $tools;
}

return MessageData::from($message ?? []);
}
}
}
5 changes: 0 additions & 5 deletions app/Models/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,4 @@ public function thread()
{
return $this->belongsTo(Thread::class);
}

public function tool()
{
return $this->belongsTo(Tool::class);
}
}
Binary file modified builds/dexor
Binary file not shown.
Binary file removed builds/droid
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 050f589

Please sign in to comment.