- Add Enabled field to all Config test objects
- Update timeout expectations to reflect 10s default
- Change API key test expectation to support optional keys for local services
- Fix all LoadConfigFromEnv test cases for new field structure
- Ensure all Chat and Client tests use properly configured objects
Signed-off-by: ChaoLiu <chaoliu719@gmail.com>
- Replace fmt.Errorf with errors.Wrapf/New for forbidigo compliance
- Add missing periods to comments for godot compliance
- Fix goimports formatting issues in multiple files
- Remove unused struct field writes in tests
- Replace unused method receivers with underscore
- Optimize single-case switch to if-else statement
Signed-off-by: ChaoLiu <chaoliu719@gmail.com>
- Add plugin/ai/client.go with OpenAI API wrapper
- Add comprehensive test suite for AI client functionality
Signed-off-by: Chao Liu <chaoliu719@gmail.com>