opengpts icon indicating copy to clipboard operation
opengpts copied to clipboard

Is `YDC` environment variable required? How to disable it?

Open HamedMP opened this issue 2 years ago • 6 comments
trafficstars

I installed requirements and added OpenAI key and Redis URL, now getting ydc_api_key not found error. How can I disable it?

Did not find ydc_api_key, please add an environment variable `YDC_API_KEY` which contains it, or pass  `ydc_api_key` as a named parameter. (type=value_error)

HamedMP avatar Nov 14 '23 16:11 HamedMP

Same here. It shouldn't be mandatory option I assume.

Specially because You.com does not provide a friendly free plan for developers. Just a trial that forces you to provide a credid card. Not ideal for prototyping. We have others alternatives.

Since it is a work in progress just setup your api.you.com account with a temp credit card for now.

arianpasquali avatar Nov 15 '23 00:11 arianpasquali

You can skip this step with export YDC_API_KEY=test

LoopKarma avatar Nov 15 '23 10:11 LoopKarma

Just set it to any random value

Suleman-Elahi avatar Nov 15 '23 12:11 Suleman-Elahi

The repo .env only has two keys in it, whereas the GCP .env sample has them all. If the code is going to require a placeholder for every key (as it does now), then the .env should have them all too. Of course, would be better to have all the API keys be required only if/when you use a particular tool.

dwertheimer avatar Nov 15 '23 15:11 dwertheimer

@Suleman-Elahi did you set a random value for all the other api keys? Seems like there's an error if keys aren't set.

mayooear avatar Nov 16 '23 10:11 mayooear

@Suleman-Elahi did you set a random value for all the other api keys? Seems like there's an error if keys aren't set.

Yea I set the environment variables with a random value.

Suleman-Elahi avatar Nov 16 '23 10:11 Suleman-Elahi