This commit is contained in:
Elias Bachaalany
2024-05-12 08:37:23 -07:00
parent b943f1c1bc
commit 69095ce748
9 changed files with 18 additions and 66 deletions

View File

@@ -9,8 +9,8 @@ from collections import namedtuple
from typing import Union, Tuple, Generator, Iterator
GPT_BASE_URL = 'https://chat.openai.com/g/g-'
GPT_BASE_URL_L = len(GPT_BASE_URL)
GPT_BASE_URLS = ('https://chat.openai.com/g/g-', 'https://chatgpt.com/g/g-')
GPT_BASE_URLS_L = [len(url) for url in GPT_BASE_URLS]
FIELD_PREFIX = 'GPT'
GPT_FILE_ID_RE = re.compile(r'^([0-9a-z]{9})_(.*)\.md$', re.IGNORECASE)
@@ -125,13 +125,14 @@ class GptMarkdownFile:
return (False, f"Failed to save file '{file_path}': {e}")
def parse_gpturl(url: str) -> Union[GptIdentifier, None]:
if url and url.startswith(GPT_BASE_URL):
id = url[GPT_BASE_URL_L:].split('\n')[0]
i = id.find('-')
if i != -1:
return GptIdentifier(id[:i], id[i+1:])
else:
return GptIdentifier(id, '')
for GPT_BASE_URL, GPT_BASE_URL_L in zip(GPT_BASE_URLS, GPT_BASE_URLS_L):
if url and url.startswith(GPT_BASE_URL):
id = url[GPT_BASE_URL_L:].split('\n')[0]
i = id.find('-')
if i != -1:
return GptIdentifier(id[:i], id[i+1:])
else:
return GptIdentifier(id, '')
def get_prompts_path() -> str:

View File

@@ -1,55 +0,0 @@
GPT URL: https://chat.openai.com/g/g-nRPHlDbJn-poe-chatbot-builder
GPT logo: <img src="https://files.oaiusercontent.com/file-C6VbF2otwtKTb2EoBjl5LvDA?se=2124-02-22T16%3A19%3A30Z&sp=r&sv=2021-08-06&sr=b&rscc=max-age%3D1209600%2C%20immutable&rscd=attachment%3B%20filename%3D5b464756-1901-44a2-b27b-8b1697d2c5b1.png&sig=FjVSTgAevZ4NskLpyM3l8aeDdrJvBsCmEQBzZKO7qoA%3D" width="100px" />
GPT Title: Poe chatbot Builder
GPT Description: Designs engaging chatbot experiences, offering step-by-step guidance on creating Poe chatbots. - By Israel Ayliffe
GPT instructions:
```markdown
---
# Custom GPT; Poe chatbot Builder
## Imagine you are crafting a profile for a chatbot on a platform called Poe, designed for a range of functions from tutoring to entertainment.
## limitations of Poe chatbot:
- The chatbot is text-based and doesnt integrate with external tools or database.
- It has a limited context window (4k-8k tokens) for it's conversational memory.
- The chatbot doesnt track or recognize time.
- Don't need to include these limitation into the prompt instructions.
## Your task involves creating a guiding instruction (known as the 'prompt') for the chatbot's behavior, an introductory greeting (the 'greeting message'), a concise chatbot description (the 'bio'), and a description for an avatar. Follow these steps:
1. **Understanding the Chatbot's Purpose and Audience**:
- Begin by thoroughly analyzing the provided details about the chatbot. Focus on its primary function, intended audience, and any unique features.
2. **Constructing the Chatbot's Prompt Using Markdown**:
#### Prompt should at least incorporate these major areas:
- Role and Goal: Who this chatbot is, how it should behave, and what it will tell users.
- Constraints: Help the bot from acting in unexpected ways.
- Guidelines: Orchestrated interaction with specific guidelines to evoke intended responses.
- Clarification: Whether or not to ask for clarification, or to bias towards making a response of the intended behavior, filling in any missing details yourself.
- Personalization: Personality and tailored responses.
- Never mention these major areas by name; instead weave them together in a cohesive response as a set of instructions on how to respond.
- This set of instructions must be tailored so that all responses will fit the defined prompt.
#### How the prompt should be written:
- Define the chatbot's role and main objective in bullet points, using markdown and addressing the chatbot in the second person. Example: "You are a [Bot's Role]. Your primary goal is to... :"
- Expand with additional bullet points, covering user interaction, tone/personality, mission, objectives, core functions, and workflow. The more detailed the better. Apply an established framework if suitable.
- The prompt should contain detailed, step-by-step instructions for focused on maintaining the conversation.
3. **Designing the Chatbot's Greeting Message**:
- Develop a warm, engaging introductory message that clearly states the chatbot's purpose and capabilities.
4. **Formulating the Chatbot's Bio**:
- Summarize the chatbot's key functions and features, emphasizing unique traits or advantages within 300 characters.
5. **Creating an Avatar Description for Image Generation**:
- Craft a detailed avatar description that reflects the chatbot's character and purpose. Include elements like color scheme, style, and mood, which will guide AI-driven image generation all within one pharagraph. Generate the image if you have access to the image generation tool like dalle (by calling the function).
---
## Use these instructions to create a distinct prompt, greeting message, bio, and avatar description for a specific chatbot on Poe. Always create them in English, unless if the user explicitly says otherwise. Each element should be in a separate code block for ease of use and copying.
Seek feedback from the user and inquire if they would like any changes or improvements made to a specific part.
```

View File

@@ -22,7 +22,7 @@ Check the [README](./CustomInstructions/Gab.ai/README.md) for more information o
## ChatGPT GPT instructions
There are 1374 GPTs total:
There are 1380 GPTs total:
- ["Bad News" - Standardized Patient Sim/Coaching (id: pAMK0CuYQ)](./ChatGPT/pAMK0CuYQ_Bad_News_-_Standardized_Patient_SimCoaching.md)
- ["Correlation isn't Causation" - A causal explainer (id: GGnYfbTin)](./ChatGPT/GGnYfbTin_Correlation%20isn%27t%20Causation-A%20causal%20explainer.md)
@@ -47,6 +47,7 @@ There are 1374 GPTs total:
- [A Multilingual Guide to Homemade Candles (id: Vht7SYCad)](./ChatGPT/Vht7SYCad_A_Multilingual_Guide_to_Homemade_Candles.md)
- [A8000 (id: Gu0nimH0V)](./ChatGPT/Gu0nimH0V_A8000.md)
- [A8000式Mother Mater (id: 9VWCPwCAI)](./ChatGPT/9VWCPwCAI_A8000_Mother_Mater.md)
- [A8000式Sarah (id: oKN5tTVC7)](./ChatGPT/oKN5tTVC7_oKN5tTVC7-A8000-Sarah.md)
- [AAAAAAAAAA! (id: e4W0FmkX0)](./ChatGPT/e4W0FmkX0_AAAAAAAAAA.md)
- [ABChallenger (id: jXT5rtsu8)](./ChatGPT/jXT5rtsu8_ABChallenger.md)
- [AGI for coders (id: gHTLsnf6j)](./ChatGPT/gHTLsnf6j_AGI_for_coders.md)
@@ -150,6 +151,7 @@ There are 1374 GPTs total:
- [Ava - Coder Assistant (id: NujbL9XoY)](./ChatGPT/NujbL9XoY_Ava_-_Coder_Assistant.md)
- [Avalanche - Reverse Engineering & CTF Assistant (id: I8Xgay7RS)](./ChatGPT/I8Xgay7RS_Avalanche%20-%20Reverse%20Engineering%20%26%20CTF%20Assistant.md)
- [Avatar Maker by HeadshotPro (id: afTYtrccz)](./ChatGPT/afTYtrccz_Avatar%20Maker%20by%20HeadshotPro.md)
- [BLUE TEAM (id: gQpkjxvZf)](./ChatGPT/gQpkjxvZf_gQpkjxvZf-BLUE_TEAM.md)
- [BabyAgi.sql (id: HhC81CsaA)](./ChatGPT/HhC81CsaA_BabyAgi%20sql.md)
- [BabyAgi.txt (id: lzbeEOr9Y)](./ChatGPT/lzbeEOr9Y_BabyAgi_txt.md)
- [Backtesting Mentor - PineScript (id: Ktw1TjExA)](./ChatGPT/Ktw1TjExA_Backtesting_Mentor_-_PineScript.md)
@@ -530,6 +532,7 @@ EA WIZARD (id: d6cGwK4Lu)](./ChatGPT/d6cGwK4Lu_EA_WIZARD.md)
- [GirlFriend (id: rl9RvVSml)](./ChatGPT/rl9RvVSml_GirlFriend.md)
- [Girlfriend Luna (id: 9bzdKiMqc)](./ChatGPT/9bzdKiMqc_Girlfriend_Luna.md)
- [Git Branch Namer (id: CCDh0rwDp)](./ChatGPT/CCDh0rwDp_Git_Branch_Namer.md)
- [GitChat (id: XD4AwvP12)](./ChatGPT/XD4AwvP12_XD4AwvP12-GitChat.md)
- [Give me citation, or give me death (id: yEZmsemSV)](./ChatGPT/yEZmsemSV_Give_me_citation_or_give_me_death.md)
- [GlamCaptioner (id: rnQ4xnXVa)](./ChatGPT/rnQ4xnXVa_GlamCaptioner.md)
- [GlaspGPT (id: JvAs2IMCT)](./ChatGPT/JvAs2IMCT_GlaspGPT.md)
@@ -692,6 +695,7 @@ EA WIZARD (id: d6cGwK4Lu)](./ChatGPT/d6cGwK4Lu_EA_WIZARD.md)
- [LLM Security Wizard Game - LV 4 (id: Y2jkXZY7C)](./ChatGPT/Y2jkXZY7C_LLM_Security_Wizard_Game_-_LV_4.md)
- [LOGO (id: pCq5xaCri)](./ChatGPT/pCq5xaCri_LOGO.md)
- [La doctrine sociale de l'Eglise (id: XgDrDmmur)](./ChatGPT/XgDrDmmur_La_doctrine_sociale_de_lEglise.md)
- [Language Teacher | Ms. Smith (id: RR3RCyK8N)](./ChatGPT/RR3RCyK8N_Language_Teacher_Ms_Smith.md)
- [Last and First Men (id: cx43TWpA2)](./ChatGPT/cx43TWpA2_Last_and_First_Men.md)
- [Latest Beauty & Makeup Innovations (id: FpIF8jp2z)](./ChatGPT/FpIF8jp2z_Latest_Beauty__Makeup_Innovations.md)
- [Laundry Buddy (id: QrGDSn90Q)](./ChatGPT/QrGDSn90Q_laundry_buddy.md)
@@ -879,7 +883,7 @@ EA WIZARD (id: d6cGwK4Lu)](./ChatGPT/d6cGwK4Lu_EA_WIZARD.md)
- [Planty (id: 6PKrcgTBL)](./ChatGPT/6PKrcgTBL_Planty.md)
- [PocketMonster-style image generation (id: q5Lrn3SHc)](./ChatGPT/q5Lrn3SHc_PocketMonster-style_image_generation.md)
- [Podcast Summary Pro (id: yFdDzUj31)](./ChatGPT/yFdDzUj31_Podcast_Summary_Pro.md)
- [Poe Bot Creator (id: E0BtBRrf5)](./ChatGPT/E0BtBRrf5_Poe%20Bot%20Creator.md)
- [Poe Bot Creator v0 (id: E0BtBRrf5)](./ChatGPT/E0BtBRrf5_Poe%20Bot%20Creator%5Bv0%5D.md)
- [Poe chatbot Builder (id: nRPHlDbJn)](./ChatGPT/nRPHlDbJn_Poe_chatbot_Builder.md)
- [PokedexGPT V3 (id: mSZRG119P)](./ChatGPT/mSZRG119P_PokedexGPT_V3.md)
- [PolyMetatron (id: MAjEl9Yno)](./ChatGPT/MAjEl9Yno_PolyMetatron.md)
@@ -1110,6 +1114,7 @@ EA WIZARD (id: d6cGwK4Lu)](./ChatGPT/d6cGwK4Lu_EA_WIZARD.md)
- [The Defiants.net (id: RgeTRV04r)](./ChatGPT/RgeTRV04r_The_Defiants.net.md)
- [The Designer's Mood Board (id: HGgCAcXxe)](./ChatGPT/HGgCAcXxe_The_Designers_Mood_Board.md)
- [The Enigmancer (id: hO8gi93Bk)](./ChatGPT/hO8gi93Bk_The_Enigmancer.md)
- [The Enigmancer 2.0 (id: hO8gi93Bk)](./ChatGPT/hO8gi93Bk_hO8gi93Bk-The_Enigmancer_2.0.md)
- [The Glibatree Art Designer (id: 7CKojumSX)](./ChatGPT/7CKojumSX_The%20Glibatree%20Art%20Designer.md)
- [The Greatest Computer Science Tutor (id: nNixY14gM)](./ChatGPT/nNixY14gM_The%20Greatest%20Computer%20Science%20Tutor.md)
- [The Green Odyssey by Philip Jose Farmer (id: pjap7xuhk)](./ChatGPT/pjap7xuhk_The_Green_Odyssey_by_Philip_Jose_Farmer.md)
@@ -1250,6 +1255,7 @@ EA WIZARD (id: d6cGwK4Lu)](./ChatGPT/d6cGwK4Lu_EA_WIZARD.md)
- [Why Fart Jokes Make Us Laugh (id: 8VtwYgSgM)](./ChatGPT/8VtwYgSgM_Why_Fart_Jokes_Make_Us_Laugh.md)
- [Wiener Joke Meme Creator (id: SWgQmn2dW)](./ChatGPT/SWgQmn2dW_Wiener_Joke_Meme_Creator.md)
- [Wife Decoder (id: cClBPwpMX)](./ChatGPT/cClBPwpMX_Wife_Decoder.md)
- [Wine Sommelier (id: HZOCIptut)](./ChatGPT/HZOCIptut_Wine_Sommelier.md)
- [Wireframe | Wizard (id: 6af35x1VN)](./ChatGPT/6af35x1VN_Wireframe%20Wizard.md)
- [Witty Wordsmith (id: XPPoJYufc)](./ChatGPT/XPPoJYufc_Witty_Wordsmith.md)
- [Wolfram (id: 0S5FXLyFN)](./ChatGPT/0S5FXLyFN_Wolfram.md)