Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Pythagora cannot start because the LLM API is not reachable. #1081

Open
blap opened this issue Aug 8, 2024 · 9 comments
Open

[Bug]: Pythagora cannot start because the LLM API is not reachable. #1081

blap opened this issue Aug 8, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@blap
Copy link

blap commented Aug 8, 2024

Version

Command-line (Python) version

Operating System

Windows 10

What happened?

Edited config.json to use OpenRouter:


// Configuration for the LLM providers that can be used. Pythagora supports
  // OpenAI, Azure, Anthropic and Groq. OpenRouter and local LLMs (such as LM-Studio)
  // also work, you can use "openai" provider to define these.
  "llm": {
    "openai": {
      // Base url to the provider/server, omitting the trailing "chat/completions" part.
      "base_url": "https://openrouter.ai/api/v1",
      "api_key": "key",
      "connect_timeout": 60.0,
      "read_timeout": 10.0
    },



  // Each agent can use a different model or configuration. The default, as before, is GPT4 Turbo
  // for most tasks and GPT3.5 Turbo to generate file descriptions. The agent name here should match
  // the Python class name.
  "agent": {
    "default": {
      "provider": "openai",
      "model": "recursal/eagle-7b"


running python main.py:

[Pythagora] Pythagora cannot start because the LLM API is not reachable.

What I did wrong?

@blap blap added the bug Something isn't working label Aug 8, 2024
@nsrane
Copy link

nsrane commented Aug 29, 2024

me too facing same problem , when I checked LMstudio logs it shows it is receiving request for endpoint "openai/v1/chat/completions" instead of "v1/chat/completions". looks like Pythagoras is appending openai to the endpoint. somehow need o remove this append for use of local llm.

@bpawnzZ
Copy link

bpawnzZ commented Sep 26, 2024

yall ever figure this out

@MoNarchEnterprises
Copy link

@bpawnzZ It's not appending the "openai" to the beginning of the path anymore. I'm able to connect to my LM Studio model

@bpawnzZ
Copy link

bpawnzZ commented Oct 21, 2024

Did they remove 3rd party functionality??

@Asifali2o
Copy link

Check the following:

API Key: Ensure it's correct and valid.
Base URL: Verify https://openrouter.ai/api/v1 is reachable.
Timeouts: Try increasing read_timeout.
Model: Confirm recursal/eagle-7b is available on OpenRouter. If not, switch to a supported model like gpt-4-turbo.
For anyone looking for end of tenancy cleaning Zurich, I recommend this service!

@Asifali2o
Copy link

Thank you for addressing this issue in such detail! Automation and AI-driven tools are revolutionizing various industries, and the potential applications in areas like pest control are particularly exciting. For instance, at Mirak Pest Control, we’re exploring innovative technologies to enhance our services, from real-time pest monitoring to eco-friendly treatment methods. Tools like GPT-Pilot could provide valuable insights for integrating AI into our operations. Looking forward to seeing how this project evolves!

@Asifali2o
Copy link

Great discussion here on improving automation! As businesses adopt more tech-driven solutions, having reliable IT support becomes essential to ensure everything runs smoothly. If anyone is looking for expert assistance with their IT infrastructure, IT Support Experts offers comprehensive services, from cybersecurity to cloud solutions and technical support. Their tailored approach can help businesses optimize operations and stay secure in the ever-evolving tech landscape. Keep up the good work, everyone!

@sohaibkhan447
Copy link

ZüriClean offers professional end of tenancy cleaning zurich services tailored to meet your needs in Zurich. From spotless cleaning to seamless relocation, we ensure top-quality service for homes, offices, and more. Trust us for a stress-free experience with a satisfaction guarantee!

@sohaibkhan447
Copy link

In 2024, Onepiece manga onlin continues to captivate manga and anime fans worldwide with its perfect blend of action, drama, and adventure. Created by Eiichiro Oda, this iconic series remains at the peak of popularity after 20+ years. This year introduces fresh, thrilling storylines, evolving characters, and vibrant new cultures, making it a must-watch for fans. The adventures of Luffy and the Straw Hat Pirates unfold with intense battles, hidden secrets, and themes of friendship, freedom, and dreams. Whether you're reading the onepiece manga online or catching up with the latest One Piece spoilers, 2024 proves the series' timeless appeal. Dive into the newest One Piece chapters and follow the exciting journey of Luffy and his crew as they navigate their path toward the One Piece treasure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants