BHTOM-Team / bhtom2

7 stars 2 forks source link

Error in AI in Target/Publication/Generate #127

Open wyrzykow opened 5 months ago

wyrzykow commented 5 months ago

https://bh-tom2.astrolabs.pl/targets/44/generate-target-description-latex/ gives Error in AI... could we find out more? Problem with the date format?

This needs to be fixed by Salerno 15.04.2024!

arturkrawczyk commented 5 months ago

InvalidRequestError(message='The model text-davinci-003 has been deprecated, learn more here: https://platform.openai.com/docs/deprecations', param=None, code='model_not_found', http_status=404, request_id=None)

YuriiPurdenko commented 5 months ago

As stated in the documentation, we should replace 'text-davinci-003' with 'gpt-3.5-turbo-instruct'. However, currently, we do not have access to 'gpt-3.5-turbo-instruct', so @wyrzykow we need to update our OpenAI plan/licens

wyrzykow commented 5 months ago

Solution: !pip install openai==0.28

def get_response(prompt): .... model_engine = "davinci-002" ....

wyrzykow commented 5 months ago

no error now, and we do get some output, but it is rubbish! This part needs to be completely rebuilt.

image