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

OpenAIError #24

Open
shahrokhvahabi opened this issue Oct 30, 2024 · 4 comments
Open

OpenAIError #24

shahrokhvahabi opened this issue Oct 30, 2024 · 4 comments
Labels
question Further information is requested

Comments

@shahrokhvahabi
Copy link

I just got this error:

OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable

@sarahmish
Copy link
Contributor

Hi @shahrokhvahabi, thanks for using sigllm!

To use the GPT pipelines, please export your OpenAI key to the environment! You can follow the guide setup by OpenAI in this link, specifically point 4.

Let me know if you have any further questions!

@sarahmish sarahmish added the question Further information is requested label Oct 30, 2024
@shahrokhvahabi
Copy link
Author

@sarahmish thank you very much for your reply. Then I should pay for using this API ! However I exported my OpenAI key.

@shahrokhvahabi
Copy link
Author

@sarahmish I got this after running the code:
c:\ProgramData\anaconda3\envs\Python38\lib\site-packages\scipy\optimize_optimize.py:863: RuntimeWarning: invalid value encountered in subtract
np.max(np.abs(fsim[0] - fsim[1:])) <= fatol):

@sarahmish
Copy link
Contributor

This is a runtime warning that you encounter from using dynamic thresholding. You can change the hyperparameters of your pipeline to include:

hyperparameters = {
    "orion.primitives.timeseries_anomalies.find_anomalies#1": {
        "fixed_threshold": False
    }
}

which will use a fixed thresholding approach rather than dynamic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants