Skip to content
TheChatArchiveThe Chat Archive
alpaca-13b· StanfordHugging Face Arena Human Preference 55K

Write a python function that takes 'ticker' and returns the dollar value of the stock…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with gpt-4-0314’s answer.
  1. User

    Write a python function that takes 'ticker' and returns the dollar value of the stock specified by 'ticker'.

  2. Assistant

    def get_stock_value(ticker): # Get the stock value from the Yahoo Finance API yfinance = YahooFinance() stock_info = yfinance.get_info(ticker) return stock_info['price']

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.