多🌹444收拾收拾计算机视觉手机手机手机手机4大尺寸惆怅长岑长 ??????????????????????????С??????????????P??????????????????????????????????????????????????????^?????????? ????j?????????? ? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!database/migrations/2025_09_01_061700_add_shared_uuid_model_slug_to_user_openai_chat_messages.php000064400000001431152666204540026602 0ustar00uuid('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'); }); } }; extension.json000064400000000205152666204540007462 0ustar00{ "name": "MultiModel", "type": "extension", "version": "1.2.0", "description": "MultiModel extension for MagicAI" } System/Models/.gitkeep000064400000000016152666204540010713 0ustar00* !.gitignore System/MultiModelServiceProvider.php000064400000006745152666204540013676 0ustar00 * * @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'; } } System/Http/Controllers/MultiModelController.php000064400000002143152666204540016117 0ustar00validate([ '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, ]); } } System/Http/Requests/.gitkeep000064400000000016152666204540012222 0ustar00* !.gitignore System/Http/Resources/.gitkeep000064400000000016152666204540012361 0ustar00* !.gitignore resources/views/settings.blade.php000064400000000564152666204540013351 0ustar00 resources/views/partials/plans_option.blade.php000064400000001111152666204540016022 0ustar00
config/multimodel.php000064400000000051152666204540010703 0ustar00 1.0, ]; __MACOSX/._System000064400000000243152666204540007471 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/._resources000064400000000243152666204540010217 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜçdatabase/migrations/._2025_09_01_061700_add_shared_uuid_model_slug_to_user_openai_chat_messages.php000064400000000243152666204540030230 0ustar00__MACOSXMac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/database/._migrations000064400000000243152666204540012125 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/._database000064400000000243152666204540007751 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/._config000064400000000243152666204540007452 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/System/Models/._.gitkeep000064400000000243152666204540012422 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/System/._Http000064400000000243152666204540010410 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/System/Http/Controllers/._MultiModelController.php000064400000000243152666204540017623 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/System/Http/Requests/._.gitkeep000064400000000243152666204540013731 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/System/Http/._Requests000064400000000243152666204540012223 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/System/Http/._Resources000064400000000243152666204540012362 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/System/Http/._Controllers000064400000000243152666204540012716 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/System/Http/Resources/._.gitkeep000064400000000243152666204540014070 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/System/._MultiModelServiceProvider.php000064400000000243152666204540015366 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/System/._Models000064400000000243152666204540010714 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/resources/views/._settings.blade.php000064400000000243152666204540015050 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/resources/views/._partials000064400000000243152666204540013173 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/resources/views/partials/._plans_option.blade.php000064400000000243152666204540017534 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/resources/._views000064400000000243152666204540011354 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/config/._multimodel.php000064400000000243152666204540012413 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/._extension.json000064400000000243152666204540011171 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç