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

Front-End Attachment Feature Missing and OpenAI API Key Connection Error in Application #350

Open
1195srijan opened this issue May 20, 2024 · 13 comments

Comments

@1195srijan
Copy link

1195srijan commented May 20, 2024

On frontend I am not seeing Attach files feature

The OpenAI API key is causing a connection error in task weaver, although it works correctly in another.

Screenshots attached:
task-error2
task-error2
task-error2
task-error
task-error
task-error

Tasks

No tasks being tracked yet.
@liqul
Copy link
Contributor

liqul commented May 21, 2024

Could you share more on your configurations?

@1195srijan
Copy link
Author

{
"llm.api_base": "https://api.openai.com/v1",
"llm.api_key": "sk-proj-xxxxxxxxxxx",
"llm.model": "gpt-4-1106-preview"
}

If you need any specific file, let me know. This is from taskweaver_config.json

@liqul
Copy link
Contributor

liqul commented May 22, 2024

The error is indicating that the connection between your agent and openai endpoint has a connection error. I suggest you check the environment issues such as the openai sdk version, urllib3 version, etc. Make sure you can access the endpoint programmly in any code.

@1195srijan
Copy link
Author

1195srijan commented May 23, 2024

Now I am getting below error:

httpx.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)

I attempted to include Zscalar certificates into the cacert.pem file within the Conda environment that I've set up for TaskWeaver on my Windows system. However, this approach didn't yield the desired outcome

@1195srijan
Copy link
Author

Okay, this error is resolved, it was because there was some restrictions on office laptop. But still attach files feature is not seen on frontend. May I know what to do for that?

@liqul
Copy link
Contributor

liqul commented Jun 7, 2024

I cannot reproduce this issue. Could you check if there are error logs printed during the lauch of the frontend?

@1195srijan
Copy link
Author

No, I am not seeing any error. I am using model gpt-4-1106-preview is that an issue that I am not seeing attach file functionality?

@liqul
Copy link
Contributor

liqul commented Jun 12, 2024

No, I am not seeing any error. I am using model gpt-4-1106-preview is that an issue that I am not seeing attach file functionality?

I don't think the model will affect the frontend. One thing you can check is the version of Chainlit.

@1195srijan
Copy link
Author

1195srijan commented Jun 12, 2024

No, I am not seeing any error. I am using model gpt-4-1106-preview is that an issue that I am not seeing attach file functionality?

I don't think the model will affect the frontend. One thing you can check is the version of Chainlit.

Chainlit is currently at version 1.1.101. Is there a specific configuration needed to enable the file attachment feature on the frontend, or should it be visible by default?

@liqul
Copy link
Contributor

liqul commented Jun 13, 2024

Yes, there is a configuration in playground/UI/.chainlit/config.toml. Check if you can find this line

multi_modal.enabled = true

If you clone the repo, this configuration should be there.

@liqul
Copy link
Contributor

liqul commented Jun 13, 2024

I think the issue is with the new chainlit version. We haven't got bandwidth to adapt to the new version. My local test was based on version 1.0.500.

@liqul
Copy link
Contributor

liqul commented Jun 14, 2024

Have a PR for this issue #362.
If you need to fix it before the PR merge, you can make the following change

image

Also, ensure that your chainlit version is below 1.1.300 as it has an incompatible update.

@1195srijan
Copy link
Author

Thanks, this worked. Can we also link the database? If yes, please guide me on using Microsoft SQL server database.

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