fjffk简�的咖啡店科开�2方法2
环æ»�皆山也。其西å�—诸峰,林壑尤美,望之蔚然而深秀者,ç�…ç�Šä¹Ÿã€‚山行å…七里,æ¸�闻水声潺潺,而泻出于两峰之间者,酿泉也
???????????????????????????????
??????????????/?????????????????
............/...................
.........................../...
???????????????????????????????
>>>>>>>>>>>>>/>>>>>>>>>>>>>>>>>
ÿØÿà JFIF ÿÛ „ ( %!1!%)+//.383,7(-.+
-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ ¥2" ÿÄ ÿÄ J ! 1AQ"aq�2‘#BR‚¡�Ñ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ ÿÄ * !1AQa‘"2q3�±ð#b¡ÿÚ ? ¼QxJQa�uò¸Zö Úü8,�Úú
"SSn<rçù–´âE—^ªBÖ9À\†¸Â�ÔÂ�Ã�TÂÃÛ5
ëd´³Ã�#Ã�;Þ38ϔÂ� ¶H£M:wÃŽ3…³…âpÔF&‚FK¸9„â4à GEõªfÂ�ÿ ‘ñ(ßwÂpŽF|È¥ù®häðÃ�Ѷ¹‘[Ã’inÙW¶ùñYËœQ{›K"išÒ[Ú8žë\F¹@-?v"ÔUâ€�,ìöžkÿ {I‡£šÃ�?e
rÂ�ÃV
?>
.........................................
.............................................................................
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>>>>>>>>>>>>>/>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
dsdfPK •ƒW]¶Ì49 a database/migrations/2025_09_01_061700_add_shared_uuid_model_slug_to_user_openai_chat_messages.phpnu „[µü¤ uuid('shared_uuid')->nullable()->after('id')->index();
$table->string('model_slug')->nullable()->after('shared_uuid')->index();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('user_openai_chat_messages', function (Blueprint $table) {
$table->dropColumn('shared_uuid');
$table->dropColumn('model_slug');
});
}
};
PK •ƒW]‚;‚… … extension.jsonnu „[µü¤ {
"name": "MultiModel",
"type": "extension",
"version": "1.2.0",
"description": "MultiModel extension for MagicAI"
}
PK •ƒW]ëš© System/Models/.gitkeepnu „[µü¤ *
!.gitignore
PK •ƒW]!s¸å
å
$ System/MultiModelServiceProvider.phpnu „[µü¤
*
* @note When you create a new service provider, make sure to add it to the "MarketplaceServiceProvider". Otherwise, your Laravel application won’t recognize this provider, and the related functions won’t work properly.
* @note If you want to perform a specific action when an extension is uninstalled, you can use the UninstallExtensionServiceProviderInterface. By implementing this interface, you can define custom operations that will be triggered during the uninstallation of the extension.
* @note The registerKey() method is used to provide a unique identifier for the extension, which is essential for the healthy check and other functionalities.
*/
class MultiModelServiceProvider extends ServiceProvider implements ExtensionRegisterKeyProviderInterface, UninstallExtensionServiceProviderInterface
{
public function register(): void
{
$this->registerConfig();
}
public function boot(Kernel $kernel): void
{
$this->registerTranslations()
->registerViews()
->registerRoutes()
->registerMigrations()
->publishAssets()
->registerComponents();
}
public function registerComponents(): static
{
// $this->loadViewComponentsAs('multi-model', []);
return $this;
}
public function publishAssets(): static
{
$this->publishes([
// __DIR__ . '/../resources/assets/js' => public_path('vendor/multimodel/js'),
// __DIR__ . '/../resources/assets/images' => public_path('vendor/multimodel/images'),
], 'extension');
return $this;
}
public function registerConfig(): static
{
$this->mergeConfigFrom(__DIR__ . '/../config/multimodel.php', 'multi-model');
return $this;
}
protected function registerTranslations(): static
{
$this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'multi-model');
return $this;
}
public function registerViews(): static
{
$this->loadViewsFrom([__DIR__ . '/../resources/views'], 'multi-model');
return $this;
}
public function registerMigrations(): static
{
$this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
return $this;
}
private function registerRoutes(): static
{
$this->router()
->group([
'middleware' => ['web', 'auth'],
'prefix' => 'dashboard/user/multimodel',
'controller' => MultiModelController::class,
], function (Router $router) {
$router->post('/accept-response', 'acceptResponse')->name('prefer');
});
return $this;
}
private function router(): Router|Route
{
return $this->app['router'];
}
public static function uninstall(): void
{
// TODO: Implement uninstall() method.
}
public function registerKey(): string
{
return 'multi-model';
}
}
PK •ƒW]«6ì6c c 0 System/Http/Controllers/MultiModelController.phpnu „[µü¤ validate([
'messageId' => 'required|integer|exists:user_openai_chat_messages,id',
]);
// Retrieve the message
$message = UserOpenaiChatMessage::find($validated['messageId']);
if (! $message) {
return response()->json(['error' => 'Message not found'], 404);
}
// Delete other messages with the same shared_uuid
$deletedCount = UserOpenaiChatMessage::where('shared_uuid', $message->shared_uuid)
->where('id', '!=', $message->id)
->delete();
$message->shared_uuid = null;
$message->save();
return response()->json([
'success' => true,
'deleted' => $deletedCount,
]);
}
}
PK •ƒW]ëš© System/Http/Requests/.gitkeepnu „[µü¤ *
!.gitignore
PK •ƒW]ëš© System/Http/Resources/.gitkeepnu „[µü¤ *
!.gitignore
PK •ƒW]&]Qut t " resources/views/settings.blade.phpnu „[µü¤