appleboy / appleboy/CodeGPT

provider yaml key is confusing

Open
#231 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.5k
Forks
133
Avg merge
12m
Merged PRs (30d)
1

Description

When I set up the tool with any provider but OpenAI, the keys seem to be confusing, for example

```bash
export OPENAI_API_KEY=sk-xxxxxxx

codegpt config set openai.provider gemini
```

`gemini` has nothing in common with `openai`. I understand that it's most likely a legacy, but it's better to switch this to `llm_config` and make it `llm_config.provider`.

A similar idea is about `OPENAI_API_KEY` env var. At this point, the env var for api_key is supported only by OpenAI, which is pretty inconvenient.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.