v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-05-17 16:20:33 -07:00
Xun aa957d195c
feat(translator): add ChatGPT (#18)
* 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
2023-05-12 13:53:23 +08:00

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
}