Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinecraft committed Dec 14, 2024
1 parent ae50ac2 commit 93bebc2
Show file tree
Hide file tree
Showing 227 changed files with 1,833 additions and 1,828 deletions.
2 changes: 2 additions & 0 deletions app/Http/Controllers/Admin/AskDbController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use EchoLabs\Prism\ValueObjects\Messages\UserMessage;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Log;
use Inertia\Inertia;
use League\CommonMark\GithubFlavoredMarkdownConverter;

Expand Down Expand Up @@ -77,6 +78,7 @@ public function query(Request $request, AskDbService $askDbService)
]
]);
} catch (\Exception $e) {
Log::error($e);
return response()->json([
'message' => 'Failed processing your request! Try again after rephrasing your question.',
'verbose' => $appDebug ? $e->getMessage() : null,
Expand Down
1 change: 0 additions & 1 deletion app/Services/AskDbService.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public function __construct(protected AiService $aiService)
public function chatWithAskDbForUser(string $prompt, $user)
{
$messagesHistory = Cache::get("askdb::user_chat_session::{$user->id}", []);
dd($messagesHistory);
$systemPrompt = $this->generateSystemPrompt();

if (count($messagesHistory) > 0) {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions public/build/default/assets/AdminLayout-3f7d09eb.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion public/build/default/assets/AdminLayout-6871218d.js

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 93bebc2

Please sign in to comment.