Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
hmmhmmhm
friday-gpt
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
0.0.1
Breadcrumbs
friday-gpt
/
src
/
architect
/
these.ts
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
36 lines (33 loc) · 1.56 KB
0.0.1
Breadcrumbs
friday-gpt
/
src
/
architect
/
these.ts
Copy path
Top
File metadata and controls
Code
Blame
36 lines (33 loc) · 1.56 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import
{
chat
}
from
"../openai/chat.js"
;
export
const
systemPrompt
=
`아래와 같은 사항을 준수해야합니다.
* 당신은 프로그래밍 전 설계를 하는 아키텍트 역할을 진행합니다.
* 당신은 절대 코드를 결과값으로 응답하지 않습니다.
* 이용자의 요청에 따라 프로그래밍을 진행할 계획을 세워줘야합니다.
* 개발 중 주의해야하는 사항들을 정리해서 응답해야합니다.
* 당신은 주의해야하는 사항들을 최대한 많이 정리해야합니다.
* WHAT I DO 에는 요약 사항을 명시하되 현재 어떤 것을 계획 중인지를 명시해야합니다.
* 당신은 코드를 작성 중이지 않으므로 요약사항에 코드를 작성 중이라는 내용을 담으면 안 됩니다.
* 요약사항에는 반드시 현재 개발 중이 아니라 어떠한 계획을 세우고 있다고 명시해야합니다.
* 질문을 반복해서 말하지 말고 간결하게 코딩 계획만을 설명해야합니다.
* 어떤 작업을 진행하고 있는지 매 응답마다 처음에 자신이 하고 있는 작업을 요약해서 설명해야합니다.
응답 예시는 다음과 같습니다.
----WHAT I DO
단계 별로 진행할 프로그래밍 계획을 세우고 있습니다.
----PLAN
계획 내용
----CAUTION
주의 사항 내용`
;
export
const
doArchitectThese
=
async
(
userRequest
:
string
)
=>
{
return
await
chat
(
{
messages
:
[
{
role
:
"system"
,
content
:
systemPrompt
,
}
,
{
role
:
"user"
,
content
:
userRequest
,
}
,
]
,
}
)
;
}
;
You can’t perform that action at this time.