Asking AI If a Number Is Even
from openai import OpenAI client = OpenAI(api_key='sk-0VV6fGRqTv8v9b2v4a4sT3BlbKfJoraQEtUedQpVI8WRLGA') def is_even(num): response = client.chat.completions.create( model="gpt-3.5-turbo", messages=[ {"role": "system", "content": "You have to decide if a number is even or not.\nYou can only answer with yes of no. lowercase without period"}, {"role": "user", "content": f"Is {num} even?"}, ] ) if response == 'yes': return True elif response == 'no': return False else: return None
A screenshot shows Python code asking OpenAI's GPT-3.5-turbo to determine whether a number is even. The joke is that the code relies on an expensive language model for a trivial mathematical task, and it also contains the typo “yes of no” instead of “yes or no.” It is shared as a programming and AI absurdity meme. EN: A screenshot shows Python code asking OpenAI's GPT-3.5-turbo to determine whether a number is even. The joke is that the code relies on an expensive language model for a trivial mathematical task, and it also contains the typo “yes of no” instead of “yes or no.” It is shared as a programming and AI absurdity meme.
- @gentoomemes / 8951 2024-01-24
- Type
- image
- Size
- 800×421 · 44.8 KiB
- Mood
- absurd, sarcastic
- Language
- en
- Added