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]: No output after input text #103

Open
kevin-support-bot bot opened this issue Nov 21, 2024 · 35 comments
Open

[Bug]: No output after input text #103

kevin-support-bot bot opened this issue Nov 21, 2024 · 35 comments

Comments

@kevin-support-bot
Copy link

All-Hands-AI#5171 Issue


@NonvolatileMemory Is there any error in the logs?

@NonvolatileMemory
Copy link

no

@SmartManoj
Copy link
Owner

Is there any error in the docker container logs?

@NonvolatileMemory
Copy link

no, I think?

@SmartManoj
Copy link
Owner

Could you check it in Github Codespaces and check if the issue is still persisting?

@NonvolatileMemory
Copy link

ok, thanks! But where can i find the tutorail about how to check it in github codespaces

@SmartManoj
Copy link
Owner

Simply clicking the above link is enough. It will build (~2 mins) and give the app link.

Steps to use GitHub Codespaces

@NonvolatileMemory
Copy link

ok thanks.

and I checked again with docker and GUI from localhost:3000.

There is no reply after I send one prompts. And I can not post anything new.

@SmartManoj
Copy link
Owner

Could you check this litellm script to check if the LLM works properly?

@NonvolatileMemory
Copy link

ok thanks!

I am checking the github codespace, and after it I will try litellm script.

sincerely thanks

@NonvolatileMemory
Copy link

image

is this one correct? I wait for maybe like 10 mins, and no output yet, and my deepseek API seems no consumed

@NonvolatileMemory
Copy link

litellm.ServiceUnavailableError: OllamaException: HTTPConnectionPool(host='localhost', port=11434): Max retries exceeded with url: /api/generate (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7be990072090>: Failed to establish a new connection: [Errno 111] Connection refused'))

@SmartManoj
Copy link
Owner

Are you using WSL?

@NonvolatileMemory
Copy link

i am using github codespace with mac os/ chorme

@NonvolatileMemory
Copy link

under the github codespace: gpt can output, deepseek (from ollamao) cannot
under my own docker: all cannot output

@SmartManoj
Copy link
Owner

SmartManoj commented Nov 21, 2024

As Deepseek is running in your system only, the codespace won't have access to that. Now could you check if GPT is working locally using development guide?

@NonvolatileMemory
Copy link

no, i am using deepseek api

@NonvolatileMemory
Copy link

As Deepseek is running in your system only, the codespace won't have access to that. Now could you check if GPT is working locally using development guide?

gpt works very well

@SmartManoj
Copy link
Owner

host='localhost', port=11434

Here Ollama is used.

@NonvolatileMemory
Copy link

so ollama is using local serving api?

then how can I use deepseek api?

@SmartManoj
Copy link
Owner

SmartManoj commented Nov 21, 2024

Yes, ollama is running locally.
Could you check this litellm script?

@NonvolatileMemory
Copy link

ok thanks, so if i want to use deepseek, i should use advanced mode?

@SmartManoj
Copy link
Owner

Yes, with base_url = http://host.docker.internal:11434

@NonvolatileMemory
Copy link

yep, deepseek ok now!

Thanks.

But why my own docker cannot run?

@SmartManoj
Copy link
Owner

Did you change the base URL?
Local LLM Guide

@NonvolatileMemory
Copy link

no, but actually i am using api from cloud.
why github codespace is ok but my docker failed to generate.

I run the command with

docker pull docker.all-hands.dev/all-hands-ai/runtime:0.14-nikolaik

docker run -it --rm --pull=always \
    -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.14-nikolaik \
    -e LOG_ALL_EVENTS=true \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -p 3000:3000 \
    --add-host host.docker.internal:host-gateway \
    --name openhands-app \
    docker.all-hands.dev/all-hands-ai/openhands:0.14

@SmartManoj
Copy link
Owner

API from deepseek.com?


litellm.ServiceUnavailableError: OllamaException: HTTPConnectionPool(host='localhost', port=11434): Max retries exceeded with url: /api/generate (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7be990072090>: Failed to establish a new connection: [Errno 111] Connection refused'))

Is there any other error occurred like this?

@NonvolatileMemory
Copy link

API from deepseek.com?

yes, it can run only on github codespace, cannot on my own docker

@SmartManoj
Copy link
Owner

Is there any error occurring when running using docker?

@SmartManoj
Copy link
Owner

SmartManoj commented Nov 21, 2024

If you use deepseek from API, then the model name is deepseek/deepseek-coder
No need to set base_url as litellm automatically handles that.

@NonvolatileMemory
Copy link

image different from the github codespace, when I use docker, the left corner always shows red staring up

@SmartManoj
Copy link
Owner

Is there any error in the terminal?

@NonvolatileMemory
Copy link

no

@NonvolatileMemory
Copy link

just always show this

@SmartManoj
Copy link
Owner

Could you run using the development guide?

@NonvolatileMemory
Copy link

I will try it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants