feat: add llama command
This commit is contained in:
8 files changed
+70
-12
No files matched your search
@@ -10,7 +10,7 @@ package cn.rtast.fancybot.util
|
||||
import java.io.InputStream
|
||||
|
||||
object Resources {
|
||||
fun loadFromResources(filename: String): InputStream {
|
||||
fun loadFromResources(filename: String): InputStream? {
|
||||
return this::class.java.classLoader.getResourceAsStream(filename)
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ class ConfigManager : JsonFileHandler<Config>("config.json") {
|
||||
val imageType get() = this.read<Config>().imageType
|
||||
val openAIAPIHost get() = this.read<Config>().openAIAPIHost
|
||||
val openAIAPIKey get() = this.read<Config>().openAIAPIKey
|
||||
val openAIModel get() = this.read<Config>().openAIModel
|
||||
val smtpHost get() = this.read<Config>().smtpHost
|
||||
val smtpPort get() = this.read<Config>().smtpPort
|
||||
val smtpUser get() = this.read<Config>().smtpUser
|
||||
@@ -29,4 +30,6 @@ class ConfigManager : JsonFileHandler<Config>("config.json") {
|
||||
val smtpFromAddress get() = this.read<Config>().smtpFromAddress
|
||||
val admins get() = this.read<Config>().admins
|
||||
val enableAntiRevoke get() = this.read<Config>().enableAntiRevoke
|
||||
val llamaUrl get() = this.read<Config>().llamaUrl
|
||||
val llamaModel get() = this.read<Config>().llamaModel
|
||||
}
|
||||
Reference in New Issue
Block a user