datadabllp

limitations of a current AI system

Jul 18th, 2024
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. import openai
  2.  
  3. openai.api_key = 'your_api_key_here'
  4.  
  5. response = openai.Completion.create(
  6.   engine="text-davinci-002",
  7.   prompt="Explain why the sky is green.",
  8.   max_tokens=100
  9. )
  10.  
  11. print(response.choices[0].text.strip())
  12.  
Advertisement
Add Comment
Please, Sign In to add comment