6 Commits

Author SHA1 Message Date
bobo.yang
b2bd118e33 feat: Update tests and remove deprecated tests for Claude3 integration
- Comment out mocha imports in various tests to prep for new test strategy
- Replace `before` with `beforeEach` and `after` with `afterEach` for consistency
- Remove deprecated `commandsBase.test.ts` and `dtm.test.ts` files to reflect focus on new functionality
2024-03-10 16:36:28 +08:00
bobo.yang
16046ec517 remove unused configuration config 2023-09-13 10:08:16 +08:00
bobo.yang
e2e761fd16 Separate handling for OpenAI and DevChat API keys
- Renamed and split the API key settings in package.json into DevChat and OpenAI specific keys.
- Updated the commands for setting API keys to handle OpenAI and DevChat keys separately.
- Modified the ApiKeyManager to handle and validate OpenAI and DevChat keys separately.
- Updated the status bar view to use the DevChat access key command.
- Adjusted the tests to reflect the new handling of API keys.
2023-08-03 15:09:34 +08:00
bobo.yang
bef66fb80e Update API key validation and handling
- Modified the API key validation logic to check for non-empty strings before validating.
- Updated the API key prefix from 'sk.' to 'sk-' in the ApiKeyManager and corresponding tests.
- Adjusted the test cases to reflect the new API key format.
2023-08-03 10:58:18 +08:00
bobo.yang
23883abc20 Update API endpoint in apiKey.test.ts
- Replace old endpoint with the new 'https://api.devchat.ai/v1' endpoint.
2023-07-24 00:11:56 +08:00
bobo.yang
ba097eab26 add unit tests for src 2023-05-31 16:10:53 +08:00