Compare commits
2 Commits
43608c736a
...
fafad145e5
| Author | SHA1 | Date | |
|---|---|---|---|
| fafad145e5 | |||
| d7055163f9 |
@ -31,8 +31,6 @@ class OpenAIConfig(AIConfig):
|
||||
"""
|
||||
The OpenAI section of the configuration file.
|
||||
"""
|
||||
# the name must not be changed
|
||||
name: Final[str] = 'openai'
|
||||
# all members have default values, so we can easily create
|
||||
# a default configuration
|
||||
ID: str = 'default'
|
||||
@ -44,6 +42,8 @@ class OpenAIConfig(AIConfig):
|
||||
top_p: float = 1.0
|
||||
frequency_penalty: float = 0.0
|
||||
presence_penalty: float = 0.0
|
||||
# the name should not be changed
|
||||
name: Final[str] = 'openai'
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[OpenAIConfigInst], source: dict[str, Any]) -> OpenAIConfigInst:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user