How do I configure the AI provider with the CLI only? #12996
|
I am trying to use The only documentation is see is about the UI I am running in headless WSL, how can I set this up? I can't seem to find any relevant documentaion. |
Replies: 1 comment 6 replies
|
Thanks a lot for asking! I can definitely reproduce the issue. The error message doesn't help in sorting out the problem which is unfortunate. gitbutler/crates/but/src/command/legacy/ai.rs Lines 44 to 45 in 21c343b The underlying system doesn't provide any reasons for the failure either, hence the generic message. CC @krlvi and @estib-vega who have been working on this. Auto-researchI did some digging through the public docs and the current source, and I don’t see a published doc page that answers this fully for CLI-only/headless use. What I found:
From the source,
That suggests the most likely current headless workaround is simply: export OPENAI_API_KEY=...
but commit --aiI also found code for broader AI provider config via Git config keys such as:
but I did not find user-facing docs that explain how to set those from CLI only, and it’s not obvious that So unless I missed something, this looks like a documentation gap:
If helpful, I can turn this into a docs issue or a proposed docs snippet. |
Hey sorry about the inconvenience.
Just want to confirm what @Byron just said. It's not yet possible to configure AI through the CLI. One can manually configure the git config properties mentioned in the Auto-research part.
That said, the ability to configure the AI provider is coming to the CLI soon.