FeiLiu36 / LLM4MOEA

Large Language Model for MOEA
MIT License
31 stars 1 forks source link

NameError: name 'off' is not defined #1

Closed GaoycAI closed 5 months ago

GaoycAI commented 7 months ago

The funtion '_do' in gpt.py seemly has some bug? In line 82, the code 'try:' under 'while retries > 0:' seemly can't return the variable 'off'

FeiLiu36 commented 7 months ago

Return 'off' is outside the While loop, I don't see any conflicts. Could you provide more details on the issue?

FeiLiu36 commented 6 months ago

Thank you for pointing it out. I have double checked the code and the error may result from the empty "out_filename". The error is blocked by the try & except, making it hard to identify the detailed bug.

The code has been updated.