forked from teilomillet/gollm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.go
60 lines (54 loc) · 1.68 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// File: config.go
package gollm
import (
"github.com/allurisravanth/gollm/config"
"github.com/allurisravanth/gollm/utils"
)
// Re-export types
type (
Config = config.Config
ConfigOption = config.ConfigOption
LogLevel = utils.LogLevel
MemoryOption = config.MemoryOption
)
// Re-export functions
var (
LoadConfig = config.LoadConfig
ApplyOptions = config.ApplyOptions
)
// Re-export ConfigOption functions
var (
SetProvider = config.SetProvider
SetModel = config.SetModel
SetOllamaEndpoint = config.SetOllamaEndpoint
SetTemperature = config.SetTemperature
SetMaxTokens = config.SetMaxTokens
SetTopP = config.SetTopP
SetFrequencyPenalty = config.SetFrequencyPenalty
SetPresencePenalty = config.SetPresencePenalty
SetTimeout = config.SetTimeout
SetMaxRetries = config.SetMaxRetries
SetRetryDelay = config.SetRetryDelay
SetLogLevel = config.SetLogLevel
SetSeed = config.SetSeed
SetMinP = config.SetMinP
SetRepeatPenalty = config.SetRepeatPenalty
SetRepeatLastN = config.SetRepeatLastN
SetMirostat = config.SetMirostat
SetMirostatEta = config.SetMirostatEta
SetMirostatTau = config.SetMirostatTau
SetTfsZ = config.SetTfsZ
SetExtraHeaders = config.SetExtraHeaders
SetEnableCaching = config.SetEnableCaching
SetMemory = config.SetMemory
SetAPIKey = config.SetAPIKey
NewConfig = config.NewConfig
)
// Constants
const (
LogLevelOff = utils.LogLevelOff
LogLevelError = utils.LogLevelError
LogLevelWarn = utils.LogLevelWarn
LogLevelInfo = utils.LogLevelInfo
LogLevelDebug = utils.LogLevelDebug
)