Eladlev / AutoPrompt

A framework for prompt tuning using Intent-based Prompt Calibration
Apache License 2.0
2.22k stars 193 forks source link

KeyError: 'function_call' #73

Closed cainiaogoroad closed 4 months ago

cainiaogoroad commented 4 months ago

image after run the command:python run_pipeline.py --prompt "Does this movie review contain a spoiler? answer Yes or No" --task_description "Assistant is an expert classifier that will classify a movie review, and let the user know if it contains a spoiler for the reviewed movie or not." --num_steps 30. it result in a promblem called "KeyError: 'function_call'" expressed in the above picture. I would appreciate it if you would help me.

Eladlev commented 4 months ago

Hi, It seems that the model doesn't respond with the expected structure

Did you use the default config parameters? The most important thing is that the meta-prompt LLM should be a strong model and not GPT-3.5 for example, if you modify the model this might explain the error

cainiaogoroad commented 4 months ago

yes,i modify the gpt-4-1106-preview to gpt-3.5-turbo. thank you!