mirror of
https://github.com/eeeXun/GTT.git
synced 2025-05-17 16:20:33 -07:00
* feat(translator): add ChatGPT * feat: check chatgpt error * refactor: change chatgpt apiKey not set text * refactor: change language to google * docs: yaml indent with 4 * refactor: APIKey in struct
14 lines
161 B
Go
14 lines
161 B
Go
package core
|
|
|
|
type APIKey struct {
|
|
key string
|
|
}
|
|
|
|
func (k *APIKey) SetAPIKey(key string) {
|
|
k.key = key
|
|
}
|
|
|
|
func (k *APIKey) GetAPIKey() string {
|
|
return k.key
|
|
}
|