Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
74571c3
Draft
hejny Sep 15, 2023
2165fbe
Scenarios
hejny Sep 15, 2023
35f40ac
Merge branch 'feature/edit-markdown' into feature/from-instagram
hejny Sep 16, 2023
7753315
Instagram fetcher
hejny Sep 16, 2023
e005479
Scraping the instagram user
hejny Sep 16, 2023
4f8b948
TODOs
hejny Sep 16, 2023
31df4c4
TODOs
hejny Sep 17, 2023
26038d0
getInstagramApiForServer
hejny Sep 17, 2023
b1ab90d
Annotate endpoints
hejny Sep 17, 2023
fc0598b
isUrlOnPrivateNetwork + isHostnameOnPrivateNetwork
hejny Sep 17, 2023
2cefccc
API endpoint handler for scraping Instagram user
hejny Sep 17, 2023
0062a4f
Connection between backend + frontend and use of config
hejny Sep 17, 2023
73e15df
Error handling in scrapeInstagramUserHandler
hejny Sep 17, 2023
9bfb738
[☂] Username and password are (not) needed for scraping of public pro…
hejny Sep 17, 2023
20ff775
Username and password are needed for scraping
hejny Sep 17, 2023
0a0ebd6
TODOs
hejny Sep 17, 2023
0898edc
Key-value store
hejny Sep 17, 2023
f5a8fff
Make Key-value store for instagram
hejny Sep 17, 2023
869f3d9
Make instagram account for 1-2i
hejny Sep 17, 2023
c8f1a0e
Instagram scraper
hejny Sep 17, 2023
4868d52
Merge branch 'main' into feature/from-instagram
hejny Sep 17, 2023
5ee630c
Auto revalidate of instagram tokens
hejny Sep 17, 2023
cff1be6
Download imstagram image
hejny Sep 18, 2023
5700b36
logImage
hejny Sep 18, 2023
b1ab304
First page made from instagram
hejny Sep 18, 2023
3d74535
TODOs
hejny Sep 18, 2023
d18c15d
TODOs
hejny Sep 18, 2023
95443a6
TODOs
hejny Sep 18, 2023
78e5338
Try to fix InstagramApi on Vercel
hejny Sep 18, 2023
d2a6096
TODOs
hejny Sep 18, 2023
7c6baa7
[☄] Refactor usage of Workerify
hejny Sep 18, 2023
f94870e
Write better annotations
hejny Sep 18, 2023
c07b8c7
Merge branch 'main' into feature/from-instagram
hejny Sep 18, 2023
2e09af7
From instagram makes page automatically just out of the box
hejny Sep 18, 2023
61ecf39
From instagram ask you about the assigment
hejny Sep 18, 2023
07b688f
No failed GPT requests
hejny Sep 18, 2023
d4f1138
Cleanup
hejny Sep 18, 2023
f60702a
From Instagram: Start spinning immediatelly after click on [Create]
hejny Sep 18, 2023
1f38773
From instagram ask you about the assigment
hejny Sep 18, 2023
48339c0
Pass business_category_name
hejny Sep 18, 2023
89bc8a5
TODOs
hejny Sep 18, 2023
add0c30
Moving TODOs to branch feature/logo
hejny Sep 18, 2023
22ffac9
Moving TODOs to branch feature/multiple-images
hejny Sep 18, 2023
a5e1dac
Moving TODOs to branch feature/ai-component-instagram-gallery
hejny Sep 18, 2023
c2aacb7
TODOs
hejny Sep 18, 2023
55bf81a
normalizeInstagramName
hejny Sep 18, 2023
8e8d626
⏣ Looking on Instagram
hejny Sep 18, 2023
3f86ae1
Using <CopilotInput/>
hejny Sep 18, 2023
5d222fa
<CopilotInput/> does not handle runningPrompt and change input value
hejny Sep 18, 2023
96de535
Pass full_name to description
hejny Sep 19, 2023
a5d3183
Move getInstagramApiForServer to its folder
hejny Sep 19, 2023
47fb142
Add samples of instagram scraping
hejny Sep 19, 2023
9b4f875
Making web from instagram with extra info
hejny Sep 19, 2023
387ca2a
Important TODOs
hejny Sep 19, 2023
90e01bb
Important Annotations
hejny Sep 19, 2023
03e553d
Add (almost) all Google fonts
hejny Sep 19, 2023
c686842
MichelanGELATO prompt
hejny Sep 19, 2023
48b4888
Create MichelanGELATO content
hejny Sep 19, 2023
84db07e
Merge branch 'main' into feature/from-instagram
hejny Sep 20, 2023
ad699e6
Merge branch 'feature/from-instagram' into customer/michelangelato
hejny Sep 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
739 changes: 734 additions & 5 deletions config.ts

Large diffs are not rendered by default.

7,441 changes: 3,774 additions & 3,667 deletions database/dumps/structure.dump.pgsql

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions documents/contact.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@
- [Messenger](https://m.me/hejny)
- [Telegram](https://t.me/hejny)
- https://www.pavolhejny.com/contact

## Social 1-2i

- [Facebook](https://www.facebook.com/profile.php?id=61551015609140) <!-- <- TODO: Change to propper username in future -->
- [Instagram](https://www.instagram.com/_1_2i_/)
- [LinkedIn](https://www.linkedin.com/company/1-2i/)
126 changes: 126 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"file-saver": "2.0.5",
"formidable": "3.5.0",
"html-react-parser": "3.0.12",
"insta-fetcher": "^1.3.26",
"isomorphic-fetch": "3.0.0",
"jszip": "3.10.1",
"lodash": "4.17.21",
Expand Down
2 changes: 1 addition & 1 deletion src/ai/text-to-text/ChatThread.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class ChatThread {

/**
* Makes a request to the OpenAI API and returns a response wrapped in ChatThread
* @private utility function
* @private Utility method within the class ChatThread
*/
private static async create(
parentChatThread: null | ChatThread,
Expand Down
5 changes: 3 additions & 2 deletions src/ai/text-to-text/completeWithGpt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export async function completeWithGpt(
const model = 'text-davinci-003';
const modelSettings = {
model,
max_tokens: 500,
// <- TODO: [🤡] Tweak, hardcode+note or put in config + Pick the best model, max_tokens, top_t,... other params
max_tokens: 1500,
// <- TODO: !!! [🤡] Tweak, hardcode+note or put in config + Pick the best model, max_tokens, top_t,... other params
};
const promptAt = new Date();

Expand Down Expand Up @@ -125,6 +125,7 @@ export async function completeWithGpt(

/**
* TODO: (Probbably no) Are there failed requests - analyze them
* Make some statistics for PromptTemeplates
* TODO: DRY ChatThread+completeWithGpt
* TODO: [🧠] Wording: response or answer?
* TODO: [🧠][5] Log also failed requests
Expand Down
Loading