AI completion
I'm getting an error with my AI set up:
log:
I've verified that the openAI key that I added to the workspace is valid...
11 Replies
I've also verified that the same key works to make API calls to openAI from a windmill script.
Is that autocompletion OR script generation.
Script generation and autocompletion (and also when I press the test key button in the workspace ai settings screen). I've also added an anthropic key which is having the same problem...
Invalid key: Error: 400 Bad request: invalid type: null, expected a string is the error I get in the popup on the client side
can you try reproducing on app.windmill.dev and share your workspace with us
Sure - give me a sec
The anthropic key works fine on app.windmill.dev
CE v1.437.1-2-g343cd02ad is my version for the set up
ask your db for:
windmill=# SELECT ai_resource FROM workspace_settings;
ai_resource
---------------------------------------------------------- {"path": null, "provider": "openai"} {"path": "u/ben/drh_anthropic", "provider": "anthropic"} (when I edit to enable openai for codegen drh is the workspace I'm looking at
---------------------------------------------------------- {"path": null, "provider": "openai"} {"path": "u/ben/drh_anthropic", "provider": "anthropic"} (when I edit to enable openai for codegen drh is the workspace I'm looking at
investigating
what's the content of: u/ben/openai_windmill_codegen
The variable has a valid openai key
I can't reproduce at all
what if you create a new resource ?
OK - let me try that (I did do that with the anthropic key). I'll delete them both and re add
Weird - I restarted the server and worker service and it started working!