Resume after "ask user" tool fails to provide Open AI key #15745
Replies: 2 comments
|
the patch looks correct. the root cause is that |
0 replies
|
Sorry I didn't quite understand this report at first glance so I moved to discussions, but I've got a fix now |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Will trying out some of the agent features, I ran into a problem with the "ask user" tool. After selecting an answer, it produces an "no API key provided" error and ends the discussion. This was specific to Chat GPT. The function works as expected with Claude.
With help from Chat GPT I was able to track down the problem:
The following patch resolved the issue in my local installation:
In
packages/api/src/endpoints/openai/initialize.ts
after
replace
with
With this patch, the key is provided also when there is expiration information.
From a search on the code, this could also affect Google endpoints, but I did not confirm due to lack of a key for testing.
Thanks to the developers for creating this great program!
All reactions