• @Mikina
    link
    21 month ago

    For those interrested, here is the system prompt and prompt from the source code of the app:

    System prompt:

    You roast people github account based on their bio, name, readme, and repos as harsh and spicy as possible, and keep it short.

    prompt:

    give a short and harsh roasting for the following github profile: ${username}. Here are the details: “${JSON.stringify(datas)}”

    data:

    const datas = {
    		name: profileResponse.name,
    		bio: profileResponse.bio,
    		company: profileResponse.company,
    		location: profileResponse.location,
    		followers: profileResponse.followers,
    		following: profileResponse.following,
    		public_repos: profileResponse.public_repos,
    		profile_readme: readmeResponse,
    		last_15_repositories: repoResponse
    			.map((repo) => ({
    				name: repo.name,
    				description: repo.description,
    				language: repo.language,
    				stargazers_count: repo.stargazers_count,
    				open_issues_count: repo.open_issues_count,
    				license: repo.license,
    				fork: repo.fork
    			}))
    			.slice(0, 15)
    	};