Why Does My Code Work in Personal Workspace But Not in Team Workspace?

Hi , i am again getting the similar error Azure OpenAI API instance name not found .

I have initialised all the variables required.
Previously, In the code you had told to set the env variables related to azure as null but now i need to use them in my snippet and i get the above error.

Hi , this error is coming from LangChain, right?
Would you mind confirming if all the env variables that they require are set?

,all the env variables are verified.

could you share how do you verify the env vars?

Hi , I have cross checked the values with set env vars … also there is no similar error when those env vars are used in python code.

Have you tried to print the env var in your step code to see if they have correct values? Also could you try to hard code the value instead of using env var?

yes , i ahve tried it .I have directly assigned values too.

Did it work? Or else I think the value of the env var is wrong, you’ll need to check the value

no , it gives same err

Then it’s the value that’s wrong, it got nothing to do with the env var right?

i ll once again check the value and ping back

Yes, please be sure to check if these are set correctly:

OPENAI_API_TYPE
OPENAI_API_BASE
OPENAI_API_KEY
OPENAI_API_VERSION

And if you set other environment variables, LangChain may pick those up and try initializing something else that you don’t want

Thanks Leo!

Hi , I have checked all the credentials and everything looks fine. Please check onto this its the same issue which was there before and we had set the env variables related to azure as null (which were not used before). But now we need to use those env variables

Please take this as a priority task . Its blocking the complete workflow.