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

Issue with Tabby Completions Choices - Text Field Empty #3696

Open
vannchic opened this issue Jan 15, 2025 · 3 comments
Open

Issue with Tabby Completions Choices - Text Field Empty #3696

vannchic opened this issue Jan 15, 2025 · 3 comments

Comments

@vannchic
Copy link

vannchic commented Jan 15, 2025

I am experiencing an issue where the text field in Tabby completions choices is always empty. Additionally, the system shows "Unreachable: Failed to connect to the completion model." I am using OpenAI's model, and I can confirm that I have normal access to OpenAI services. Can anyone help me troubleshoot this issue?

version V0.23.0

image
image

~/.tabby/config.toml

# Chat model
[model.chat.http]
kind = "openai/chat"
model_name = "gpt-4o"  # Please make sure to use a chat model, such as gpt-4o
api_endpoint = "http://api.openai.com/v1"   # DO NOT append the `/chat/completions` suffix
api_key = "skxxx"

# Completion model
[model.completion.http]
kind = "openai/completion"
model_name = "gpt-4o"   # Please make sure to use a completion model, such as gpt-3.5-turbo-instruct
api_endpoint = "http://api.openai.com/v1"   # DO NOT append the `/chat/completions` suffix
api_key = "skxxx"

# Embedding model
[model.embedding.http]
kind = "openai/embedding"
model_name = "text-embedding-3-large"   # Please make sure to use a embedding model, such as text-embedding-3-small
api_endpoint = "http://api.openai.com/v1"   # DO NOT append the `/chat/completions` suffix
api_key = "skxxx"
@vannchic
Copy link
Author

I tried changing the OpenAI model to gpt-3.5-turbo-instruct. After this change, the system indicates that it is connected. However, when I actually use it, the completions still return empty results. Any insights on how to resolve this would be appreciated.
image
image
image

@zwpaper
Copy link
Member

zwpaper commented Jan 15, 2025

Hi @vannchic, I've noticed you used http in your api_endpoint = "http://api.openai.com/v1".

This seems to be a typo, it should be https, making the correct endpoint api_endpoint = "https://api.openai.com/v1".

Could you please try that again? Just so you know, all three URLs are incorrect.

@vannchic
Copy link
Author

Hi @vannchic, I've noticed you used in your .http``api_endpoint = "http://api.openai.com/v1"

This seems to be a typo, it should be , making the correct endpoint .https``api_endpoint = "https://api.openai.com/v1"

Could you please try that again? Just so you know, all three URLs are incorrect.

Thank you for pointing that out. I double-checked to ensure that my httpsapi_endpoint and secret are correct, and I can confirm that the connection to OpenAI is functioning properly, as shown in the attached screenshot. The chat feature is working as expected, but the completions endpoint is returning an empty response.

I appreciate your assistance and am open to any further suggestions you might have.

image

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

No branches or pull requests

2 participants