btls1585 opened a new issue, #130:
URL: https://github.com/apache/dubbo-go-pixiu-samples/issues/130
**What happened**:
The `llm/bestpractise` sample setup instructions are internally inconsistent
and can easily cause the sample to fail for new users.
I verified the following locally:
- `README.md` and `README_zh.md` both instruct users to copy
`llm/bestpractise/test/.env.example`, but that file does not exist.
- The sample actually contains:
- `llm/bestpractise/.env.example`
- `llm/bestpractise/go-client/.env.example`
- `go-client/client.go` loads `go-client/.env` and reads `API_KEY`.
- `test/request.sh` uses `OPENAI_API_KEY` instead.
Because of this, following the README literally does not produce a working
environment, and the shell script and Go client expect different variable names.
**What you expected to happen**:
The README, go-client/client.go, and `test/request.sh` should use consistent
setup instructions, correct `.env` paths, and consistent API key variable
naming.
**How to reproduce it (as minimally and precisely as possible)**:
1. Open `llm/bestpractise/README.md` or `README_zh.md`.
2. Follow the documented step that copies
`llm/bestpractise/test/.env.example`.
3. Check the repository contents:
- `llm/bestpractise/test/.env.example` does not exist.
- `llm/bestpractise/go-client/.env.example` does exist.
4. Check `go-client/client.go`: it reads `go-client/.env` and uses `API_KEY`.
5. Check `test/request.sh`: it uses `OPENAI_API_KEY`.
**Anything else we need to know?**:
I reproduced this locally while running the `llm/bestpractise` sample.
Relevant files:
- `llm/bestpractise/README.md`
- `llm/bestpractise/README_zh.md`
- `llm/bestpractise/go-client/client.go`
- `llm/bestpractise/test/request.sh`
- `llm/bestpractise/go-client/.env.example`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]