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