Skip to content

Failed after 3 attempts due to: Connection error. #10

@Muhammad-Ahsan-Rasheed

Description

@Muhammad-Ahsan-Rasheed

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions