langchain4j-examples
langchain4j-examples copied to clipboard
`demo` API key not working with Streaming example
I am running the examples from this repo, when using the demo API key with not streaming examples, it works perfectly, when I executed the streaming examples I got:
2023-10-10 16:05:31,521 ERROR [org.acm.StreamingResource$1] (OkHttp https://api.openai.com/...) {
"error": {
"message": "Incorrect API key provided: demo. You can find your API key at https://platform.openai.com/account/api-keys.",
"type": "invalid_request_error",
"param": null,
"code": "invalid_api_key"
}
}
So maybe this key is only valid when not used in streaming mode?