-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from bootstrapguru/dev
Dexor 1.1
- Loading branch information
Showing
57 changed files
with
2,883 additions
and
648 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
name: Bug Report | ||
about: Create a report to help us improve the project | ||
title: "[Bug Report]: [Title]" | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Describe the Bug | ||
<!-- A clear and concise description of what the bug is. --> | ||
|
||
## To Reproduce | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
## Expected Behavior | ||
<!-- A clear and concise description of what you expected to happen. --> | ||
|
||
## Screenshots | ||
<!-- If applicable, add screenshots to help explain your problem. --> | ||
|
||
## Desktop (please complete the following information): | ||
- OS: [e.g. Windows, macOS, Linux] | ||
- Terminal: [e.g. bash, zsh, cmd, powershell] | ||
- Version [e.g. 0.1.2] | ||
|
||
## Additional Context | ||
<!-- Add any other context about the problem here. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
name: Enhancement Request | ||
about: Suggest an improvement or optimization for this project | ||
title: "[Enhancement]: [Title]" | ||
labels: enhancement | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Summary | ||
<!-- Provide a summary of the enhancement you would like to see implemented. --> | ||
|
||
## Current Behavior | ||
<!-- Describe the current behavior that you think needs improvement. --> | ||
|
||
## Desired Behavior | ||
<!-- Describe the behavior or feature you would like to see. --> | ||
|
||
## Suggested Solution | ||
<!-- Suggest your solution or improvement. --> | ||
|
||
## Additional Context | ||
<!-- Provide any other context or screenshots related to the enhancement request here. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
name: Feature Request | ||
about: Suggest a new feature or idea for this project | ||
title: "[Feature Request]: [Title]" | ||
labels: feature request | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Summary | ||
<!-- Provide a summary of the feature you would like to see implemented. --> | ||
|
||
## Motivation | ||
<!-- Why do you want this feature? What problem does it solve? Why is it important to have this feature? --> | ||
|
||
## Detailed Description | ||
<!-- Provide a detailed description of the feature. Include any benefits, goals, and expected outcomes. --> | ||
|
||
## Alternatives | ||
<!-- Are there any alternative solutions or features you've considered? If so, provide those details here. --> | ||
|
||
## Additional Context | ||
<!-- Provide any other context or screenshots about the feature request here. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
# 🤖 Droid | ||
# 🤖 Dexor | ||
|
||
Welcome to **Droid**, your trusty companion for automating and streamlining your development tasks. Droid 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.droids.dev/) to get started! | ||
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/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> | ||
<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> | ||
</p> | ||
<img src="https://raw.githubusercontent.com/bootstrapguru/droid.dev/main/resources/images/droid.webp"> | ||
<img src="https://raw.githubusercontent.com/bootstrapguru/dexor.dev/main/resources/images/dexor.webp"> | ||
|
||
## Documentation | ||
|
||
For full documentation, getting started guides, and advanced usage, please visit [docs.droids.dev](https://docs.droids.dev/). | ||
For full documentation, getting started guides, and advanced usage, please visit [docs.dexors.dev](https://docs.dexors.dev/). | ||
|
||
## License | ||
|
||
Droid is an open-source software licensed under the GPL v3 license. | ||
Dexor is an open-source software licensed under the GPL v3 license. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace App\Data; | ||
|
||
use Spatie\LaravelData\Data; | ||
|
||
class AIModelData extends Data | ||
{ | ||
public function __construct( | ||
public string $name | ||
) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace App\Data; | ||
|
||
use Illuminate\Support\Collection; | ||
use Spatie\LaravelData\Data; | ||
|
||
class MessageData extends Data | ||
{ | ||
public function __construct( | ||
public string $role, | ||
public ?string $content, | ||
public ?string $tool_call_id, | ||
public ?string $tool_name, | ||
/** @var Collection<int, ToolCallData> */ | ||
public ?Collection $tool_calls | ||
) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace App\Data; | ||
|
||
use Spatie\LaravelData\Data; | ||
|
||
class ToolCallData extends Data | ||
{ | ||
public function __construct( | ||
public string $id, | ||
public string $type, | ||
public ToolFunctionData $function, | ||
) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace App\Data; | ||
|
||
use Spatie\LaravelData\Data; | ||
|
||
class ToolFunctionData extends Data | ||
{ | ||
public function __construct( | ||
public string $name, | ||
public string $arguments, | ||
) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
namespace App\Integrations\Claude; | ||
|
||
use Saloon\Http\Connector; | ||
use Saloon\Traits\Plugins\AcceptsJson; | ||
use Saloon\Traits\Plugins\AlwaysThrowOnErrors; | ||
use Saloon\Traits\Plugins\HasTimeout; | ||
|
||
class ClaudeAIConnector extends Connector | ||
{ | ||
use AcceptsJson, AlwaysThrowOnErrors, HasTimeout; | ||
|
||
protected int $connectTimeout = 60; | ||
|
||
protected int $requestTimeout = 120; | ||
|
||
/** | ||
* The Base URL of the API | ||
*/ | ||
public function resolveBaseUrl(): string | ||
{ | ||
return 'https://api.anthropic.com/v1'; | ||
} | ||
|
||
/** | ||
* Default headers for every request | ||
*/ | ||
protected function defaultHeaders(): array | ||
{ | ||
return [ | ||
'x-api-key' => config('aiproviders.claude.api_key'), | ||
'anthropic-version' => '2023-06-01', | ||
]; | ||
} | ||
} |
Oops, something went wrong.