SimplerLLM icon indicating copy to clipboard operation
SimplerLLM copied to clipboard

Failed after 3 attempts due to: Connection error.

Open Muhammad-Ahsan-Rasheed opened this issue 1 year ago • 0 comments

Installed and run simple example but facing this issue.

Code Snippet:

from SimplerLLM.language.llm import LLM, LLMProvider

hello = 'Hello'

llm_instance = LLM.create(provider=LLMProvider.OPENAI, model_name="gpt-3.5-turbo")

try:
    ai_response = llm_instance.generate_response(prompt=hello, max_tokens=4096)
    print("AI response received successfully:", ai_response)
except Exception as e:
    print("Error generating AI response:", str(e))

Muhammad-Ahsan-Rasheed avatar Oct 21 '24 20:10 Muhammad-Ahsan-Rasheed