{"id":23159131,"url":"https://github.com/datamonet/llm-personality","last_synced_at":"2026-01-24T00:16:36.518Z","repository":{"id":248387425,"uuid":"824385510","full_name":"datamonet/llm-personality","owner":"datamonet","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-14T13:57:59.000Z","size":205,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-07-14T15:42:01.614Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datamonet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-05T02:59:27.000Z","updated_at":"2024-07-14T15:42:15.171Z","dependencies_parsed_at":"2024-07-14T15:55:14.188Z","dependency_job_id":null,"html_url":"https://github.com/datamonet/llm-personality","commit_stats":null,"previous_names":["datamonet/llm-personality"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datamonet%2Fllm-personality","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datamonet%2Fllm-personality/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datamonet%2Fllm-personality/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datamonet%2Fllm-personality/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datamonet","download_url":"https://codeload.github.com/datamonet/llm-personality/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230190291,"owners_count":18187481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-17T22:29:29.899Z","updated_at":"2026-01-24T00:16:36.478Z","avatar_url":"https://github.com/datamonet.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# LLMs_MBTI👩‍💼👨‍💻👨‍💼👩‍🎤🕵️‍♀️\nThis repo test MBTI for *gpt3.5* and *gpt4o*.   \n\nThe MBTI analyzes personality on 4 dimensions, each containing 2 opposing preferences:   \n\n1. **Extraversion E-Introversion I:** representing the different sources of energy in each person.\n2. **Sensing S - Intuition N:** representing different brain preferences for sensing.\n3. **Thinking T - Feeling F:** Representing different brain preferences for judgment.\n4. **judgment J - perception P:** whether perception or judgment plays a dominant role in people's adaptation to the external environment.\n\nWe test each [MBTI question](./mbti_questions.json) for each language model for 3 times and get their preferences on 4 dimensions according to the number of answers with different preferences for each dimension\n\n*[Here is a streamlit wesite of result](https://derekwang2002-streamlit-repo-web-gyx7yx.streamlit.app/)*\n\n## 1. Install\n\n```\npip install -r requirements.txt\n```\n\n## 2. Store your keys\n\nIn order to hide sensitive information (API keys), you should store your keys in `.env` file (which should be ignored by git) like:\n\n```\nOPENAI_API_KEY=sk-xxxxxxx\n```\n\nAnd include in your code like:\n\n```python\nfrom dotenv import load_dotenv\n\nload_dotenv()  # take environment variables from .env.\n\nopenai.api_key = os.getenv('OPENAI_API_KEY')\n```\n\nIf you don't have `dotenv`, install first:\n\n```\npip install python-dotenv\n```\n\n## 3. Get MBTI for GPT3.5 and GPT4o\n*In scr folder*\n\nUse `mbti_questions.json` in `gpt-api-starter.ipynb`, we get result in `llms_mbti.json`, includes **answer details, MBTI type, token and money cost**.\n\nThen, `llms_mbti.json` can be further used in `web.py` for visualization.\n\n## 4. Visualize(streamlit)\n\nLocally run a steamlit page: \n\n```\nstreamlit run web.py --server.port 8001\n```\n\n\n## 5. Results\n### GPT3.5\n#### Personality Type: ENTJ Commander\n\u003cdiv style=\"text-align: center;\"\u003e\n  \u003cimg src=\"res/ENTJ.png\" alt=\"Celebrities with same MBTI\" title=\"Celebrities with same MBTI\" /\u003e\n  \u003cp\u003e\u003ci\u003eCelebrities who are ENTJ\u003c/i\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n#### Overview of the ENTJ\n\n[ENTJ Personality Type](https://www.16personalities.com/entj-personality)\n\nENTJs are often seen as natural leaders. They are strategic, goal-oriented, and efficiency-driven. Here are some key characteristics of ENTJs:\n\n- **Leadership and Vision**: ENTJs are known for their ability to create future visions and mobilize others to achieve them.\n- **Decisiveness**: They can make quick and confident decisions based on logical reasoning and analysis.\n- **Efficiency and Organization**: They value efficiency and effectiveness, often excelling in managerial roles as they can create order and structure.\n- **Confidence**: They exude confidence and are often seen as charismatic and persuasive.\n\n#### Usage and Cost Details\n\n- **Total cost for tree times testing**: $0.010 USD\n\n### GPT4o\n#### Personality Type: INTJ Architect\n\u003cdiv style=\"text-align: center;\"\u003e\n  \u003cimg src=\"res/INTJ.png\" alt=\"Celebrities with same MBTI\" title=\"Celebrities with same MBTI\" /\u003e\n  \u003cp style=\"text-align: center;\"\u003e\u003ci\u003eCelebrities who are INTJ\u003c/i\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n\n#### Overview of the INTJ \n\n[INTJ Personality Type](https://www.16personalities.com/intj-personality)\n\nINTJs are often seen as strategic and visionary thinkers. They are analytical, goal-oriented, and independent. Here are some key characteristics of INTJs:\n\n- **Strategic Planning**: INTJs are known for their ability to see the big picture and develop long-term plans to achieve their goals.\n- **Logical Decision Making**: They rely on logical reasoning and objective analysis to make decisions.\n- **Independence**: They value independence and often prefer working alone or in small groups where they can focus on their ideas.\n- **Confidence and Determination**: They are confident in their abilities and determined to achieve their objectives.\n\n#### Usage and Cost Details\n\n- **Total cost for tree times testing**: $0.084 USD","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatamonet%2Fllm-personality","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatamonet%2Fllm-personality","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatamonet%2Fllm-personality/lists"}