As the topic states I made a finetune model that works in Playground but when I try to use it in python I get an error saying the model does not exist. I also did >openai api fune_tunes.list and it shows up there as well but I can’t use it outside of playground because I get an error that the model does not exist. I used the playground View code feature and copied the exact code it used and still, it does not work. Any help would be appreciated.
How about an API get https://api.openai.com/v1/models? Use that model string.
import openai
openai.api_key = "sk-xxx"
try:
models = openai.Model.list()
model_ids = [model.id for model in models["data"]]
print(model_ids)
# self.update_finished.emit(model_ids)
except Exception as err:
print(f"Error updating model list: {err}")
Indent as is your pleasure
It seemed to have just been fixed when I tried it today. Weird.