You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an error when trying to run the provided code snippet.
# Define signature
signature = 'sentence -> sentiment'
classify = dspy.Predict(signature)
# Run
sentence = "it's a charming and often affecting journey."
classify(sentence=sentence).sentiment
The error message received was:
AuthenticationError: Error code: 401 - {'error': {'message': 'Missing Authentication header or invalid API key', 'code': 401}}
I have verified that the API key used is correct, as it was successfully employed for calling the chat completions API. However, it is unclear where the authentication header is set. The error message indicates a potential issue with a missing Authentication header.
Thank you for your attention to this matter. If you require further clarification, please do not hesitate to let me know.
The text was updated successfully, but these errors were encountered:
Hello,
I encountered an error when trying to run the provided code snippet.
The error message received was:
I have verified that the API key used is correct, as it was successfully employed for calling the chat completions API. However, it is unclear where the authentication header is set. The error message indicates a potential issue with a missing Authentication header.
Thank you for your attention to this matter. If you require further clarification, please do not hesitate to let me know.
The text was updated successfully, but these errors were encountered: