jswope00 / AI-Microapp-Template-Assistant

This is a template for an AI "Assessment" Micro-app that allows you to build an AI-powered assessment like configuring a form.
MIT License
2 stars 0 forks source link

Getting Unexpected Application Error in Streamlit #6

Closed jswope00 closed 3 months ago

jswope00 commented 3 months ago

This app is now throwing an error in streamlit:

image

@rajaathota72-fc can you diagnose?

rajaathota72-fc commented 3 months ago

It is corrected now ! the issue is that assitant id was generated by me and openai api key belongs to you ! Now i have corrected the open ai key and assistant id !!

If you want to have your openai key run once locally so that assitants_id.txt updates to id on your platform.

jswope00 commented 3 months ago

@rajaathota72-fc how is this one supposed to work?

I have run it locally, and got the same "Assistant ID not found" error. then I deleted the assistnat Id from assistant_id.txt, and got a " module 'openai' has no attribute 'assistants'" error. Then I deleted the entire assistant_id.txt file and got the same error:

image
rajaathota72-fc commented 3 months ago

Now I have pushed the new version, it should be beta.assistants and beta.threads

jswope00 commented 3 months ago

Great.

Also, I was getting this error:

image

So I made this change to change file_search to retrieval:

image

OK by you?

rajaathota72-fc commented 3 months ago

Yeah that would work straightforward ! My Id has access to file search and it was working fine. Actually file search is in beta and may be not accessible for everyone or having issues.

jswope00 commented 3 months ago

Ah ok. this might address my other issue I wrote in here. Let me try looking at my key and see if I can get back to using v2. For you, are you able to use the 4o model?

jswope00 commented 3 months ago

OK I figured all this out. I had an old openai package (1.17). Upgrading to the latest (1.30) fixed all.