Add (initial): futurewalker code

This commit is contained in:
2023-11-20 00:15:18 +08:00
parent f8602cb456
commit 9ce3e5c82a
166 changed files with 15941 additions and 1072 deletions

View File

@@ -18,8 +18,8 @@
*/
'url' => '/posts-feed',
'title' => 'Latest News from EchoScoop',
'description' => 'Bite-sized scoop for world news.',
'title' => 'Latest News from FutureWalker',
'description' => 'AI & technology news you should not miss.',
'language' => 'en-US',
/*

View File

@@ -2,7 +2,7 @@
return [
'google' => [
'auth_config' => storage_path('echoscoop-90d335332507.json'),
'auth_config' => storage_path('futurewalker-8a2531e98458.json'),
'scopes' => [
\Google_Service_Indexing::INDEXING,

View File

@@ -1,10 +1,10 @@
<?php
return [
'name' => 'EchoScoop',
'name' => 'FutureWalker',
'manifest' => [
'name' => env('APP_NAME', 'EchoScoop'),
'short_name' => 'EchoScoop',
'name' => env('APP_NAME', 'FutureWalker'),
'short_name' => 'FutureWalker',
'start_url' => '/',
'background_color' => '#ffffff',
'theme_color' => '#000000',

View File

@@ -6,4 +6,42 @@
'api_key' => env('OPENAI_API_KEY'),
],
// GPT 4
'openai-gpt-4-turbo' => [
'tokens' => 128000,
'model' => 'gpt-4-1106-preview',
'input_cost_per_thousand_tokens' => 0.01,
'output_cost_per_thousand_tokens' => 0.03,
],
'openai-gpt-4' => [
'tokens' => 8192,
'model' => 'gpt-4-0613',
'input_cost_per_thousand_tokens' => 0.03,
'output_cost_per_thousand_tokens' => 0.06,
],
// GPT 3.5
'openai-gpt-3-5-turbo-1106' => [
'tokens' => 16385,
'model' => 'gpt-3.5-turbo-1106',
'input_cost_per_thousand_tokens' => 0.0010,
'output_cost_per_thousand_tokens' => 0.002,
],
'openai-3-5-turbo' => [
'tokens' => 4096,
'model' => 'gpt-3.5-turbo',
'input_cost_per_thousand_tokens' => 0.0015,
'output_cost_per_thousand_tokens' => 0.002,
],
'openai-3-5-turbo-16k' => [
'tokens' => 16385,
'model' => 'gpt-3.5-turbo-16k',
'input_cost_per_thousand_tokens' => 0.003,
'output_cost_per_thousand_tokens' => 0.004,
],
];

View File

@@ -2,6 +2,95 @@
return [
'indexing' => env('ENABLE_INDEXING', false),
'launched_epoch' => '1695513600', // 24-09-2023 00:00:00 GMT +0
'blacklist_domains_serp' => $paywalled_domains = [
],
'blacklist_keywords_serp' => [
'government',
'usa',
'china',
'policy',
'trade',
'deal',
'fake',
'nude',
'risk',
'disclosure',
'politic',
'contract',
'negotiat',
'complete',
'gun',
'safety',
'wrest',
'control',
'opinion',
'cop',
'race',
'porn',
'regulat',
'rule',
'stock',
'WSJ',
'complicated',
'leverag',
'attack',
'defend',
'concern',
'biden',
':',
'surviv',
'tackl',
'compet',
'legal',
'securit',
'alert',
'state of',
'error',
'licens',
'department of',
'threat',
'democra',
'asia',
'japan',
'doubt',
'agenc',
'presiden',
'avoid',
'study',
'expert',
'agreement',
'protection',
'survey',
'law',
'military',
'lose',
'destroy',
'humanity',
'lose',
'concern',
'ignore',
'contradic',
'wishful',
'scammer',
'fear',
'?',
'paranoid',
'copyright',
'capitaliz',
'strike',
'$',
'weapon',
'concern',
'ethic',
'underage',
'guide',
],
];

25
config/platform/proxy.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
return [
'user_agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.246',
'smartproxy' => [
'rotating_global' => [
'user' => 'sp5bbkzj7e',
'password' => 'yTtk2cc5kg23kIkSSr',
'server' => 'gate.smartproxy.com:7000',
'reproxy' => '157.230.194.206:7000',
'reproxy_enable' => false,
'cost_per_gb' => 7,
],
'unblocker' => [
'user' => 'U0000123412',
'password' => 'P$W1bda906aee53c2022d94e22ff1a1142a1',
'server' => 'unblock.smartproxy.com:60000',
'reproxy' => '157.230.194.206:7000',
'reproxy_enable' => false,
'cost_per_gb' => 20.14,
],
],
];

View File

@@ -12,9 +12,9 @@
* The default configurations to be used by the meta generator.
*/
'defaults' => [
'title' => 'EchoScoop: Bite-sized world news', // set false to total remove
'title' => 'FutureWalker: Daily AI & tech news', // set false to total remove
'titleBefore' => false, // Put defaults.title before page title, like 'It's Over 9000! - Dashboard'
'description' => 'Distilling world news into bite-sized scoops.', // set false to total remove
'description' => 'Stay updated with critical AI & tech news to build your future.', // set false to total remove
'separator' => ' - ',
'keywords' => [],
'canonical' => 'current', // Set to null or 'full' to use Url::full(), set to 'current' to use Url::current(), set false to total remove
@@ -39,12 +39,12 @@
* The default configurations to be used by the opengraph generator.
*/
'defaults' => [
'title' => 'EchoScoop: Bite-sized world news', // set false to total remove
'description' => 'Distilling world news into bite-sized scoops.', // set false to total remove
'title' => 'FutureWalker: Daily AI & tech news', // set false to total remove
'description' => 'Stay updated with critical AI & tech news to build your future.', // set false to total remove
'url' => false, // Set null for using Url::current(), set false to total remove
'type' => false,
'site_name' => false,
'images' => ['https://echoscoop.com/pwa/icon-512x512.png'],
//'images' => ['https://FutureWalker.com/pwa/icon-512x512.png'],
],
],
'twitter' => [
@@ -61,11 +61,11 @@
* The default configurations to be used by the json-ld generator.
*/
'defaults' => [
'title' => 'EchoScoop: Bite-sized world news', // set false to total remove
'description' => 'Distilling world news into bite-sized scoops.', // set false to total remove
'title' => 'FutureWalker: Daily AI & tech news', // set false to total remove
'description' => 'Stay updated with critical AI & tech news to build your future.', // set false to total remove
'url' => false, // Set to null or 'full' to use Url::full(), set to 'current' to use Url::current(), set false to total remove
'type' => 'WebPage',
'images' => ['https://echoscoop.com/pwa/icon-512x512.png'],
//'images' => ['https://FutureWalker.com/pwa/icon-512x512.png'],
],
],
];

View File

@@ -31,4 +31,8 @@
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
],
'telegram-bot-api' => [
'token' => env('TELEGRAM_BOT_TOKEN'),
],
];

15
config/tiktoken.php Normal file
View File

@@ -0,0 +1,15 @@
<?php
// config for Tiktoken
return [
// Cache folder for vocab files
'cache_dir' => storage_path('framework/cache/tiktoken'),
/**
* The default encoder
* cl100k_base: gpt-4, gpt-3.5-turbo, text-embedding-ada-002
* p50k_base: Codex models, text-davinci-002, text-davinci-003
* r50k_base: text-davinci-001
*/
'default_encoder' => 'cl100k_base',
];