OpenAI API ile AI Sistemleri Geliştirme
Francesca Donadoni
Curriculum Manager, DataCamp

Model hatası olasılıkları:

response = client.chat.completions.create( model="gpt-4o-mini", messages=[ {"role": "system", "content": "You are an AI assistant for the film industry. You should interpret the user prompt, a movie review, and based on that extract whether its sentiment is positive, negative, or neutral."},{"role": "user", "content": "It was great to see some of my favorite stars of 30 years ago including John Ritter, Ben Gazarra and Audrey Hepburn. They looked quite wonderful. But that was it. They were not given any characters or good lines to work with. I neither understood or cared what the characters were doing."}])
print(response.choices[0].message.content)
Bu film eleştirisinin duygu durumu olumsuzdur.
response = client.chat.completions.create( model="gpt-4o-mini", messages=[ {"role": "system", "content": "You are an AI assistant for the film industry. You should interpret the user prompt, a movie review, and based on that extract whether its sentiment is positive, negative, or neutral."},{"role": "user", "content": "If you read the book, your all set. If you didn't...your still all set."}]) print(response.choices[0].message.content)
Bu film eleştirisinin duygu durumu nötrdür.

OpenAI API ile AI Sistemleri Geliştirme