Skip to content

Commit 0795b99

Browse files
committed
Update docstrings
1 parent 10163f1 commit 0795b99

File tree

5 files changed

+48
-48
lines changed

5 files changed

+48
-48
lines changed

src/gptcmd/cli.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
"""
2+
This module contains the Gptcmd class and serves as an entry point to the
3+
Gptcmd command line application.
4+
Copyright 2024 Bill Dengler
5+
This Source Code Form is subject to the terms of the Mozilla Public
6+
License, v. 2.0. If a copy of the MPL was not distributed with this
7+
file, You can obtain one at https://mozilla.org/MPL/2.0/.
8+
"""
9+
10+
111
import argparse
212
import cmd
313
import dataclasses
@@ -29,16 +39,6 @@
2939
)
3040

3141

32-
"""
33-
This module contains the Gptcmd class and serves as an entry point to the
34-
Gptcmd command line application.
35-
Copyright 2023 Bill Dengler
36-
This Source Code Form is subject to the terms of the Mozilla Public
37-
License, v. 2.0. If a copy of the MPL was not distributed with this
38-
file, You can obtain one at https://mozilla.org/MPL/2.0/.
39-
"""
40-
41-
4242
__version__ = "2.0.0"
4343

4444

src/gptcmd/config.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
"""
2+
This module contains the ConfigManager class, which controls Gptcmd's
3+
config system.
4+
Copyright 2024 Bill Dengler
5+
This Source Code Form is subject to the terms of the Mozilla Public
6+
License, v. 2.0. If a copy of the MPL was not distributed with this
7+
file, You can obtain one at https://mozilla.org/MPL/2.0/.
8+
"""
9+
10+
111
import dataclasses
212
import os
313
import sys
@@ -21,16 +31,6 @@
2131
from .llm.openai import AzureAI, OpenAI
2232

2333

24-
"""
25-
This module contains the ConfigManager class, which controls Gptcmd's
26-
config system.
27-
Copyright 2024 Bill Dengler
28-
This Source Code Form is subject to the terms of the Mozilla Public
29-
License, v. 2.0. If a copy of the MPL was not distributed with this
30-
file, You can obtain one at https://mozilla.org/MPL/2.0/.
31-
"""
32-
33-
3434
DEFAULT_PROVIDERS: Dict[str, Type[LLMProvider]] = {
3535
"openai": OpenAI,
3636
"azure": AzureAI,

src/gptcmd/llm/__init__.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
"""
2+
This module contains the LLMProvider class and supporting infrastructure.
3+
Copyright 2024 Bill Dengler
4+
This Source Code Form is subject to the terms of the Mozilla Public
5+
License, v. 2.0. If a copy of the MPL was not distributed with this
6+
file, You can obtain one at https://mozilla.org/MPL/2.0/.
7+
"""
8+
9+
110
import dataclasses
211
from abc import ABC, abstractmethod
312
from decimal import Decimal
@@ -16,15 +25,6 @@
1625
from ..message import Message, MessageAttachment, UnknownAttachment
1726

1827

19-
"""
20-
This module contains the LLMProvider class and supporting infrastructure.
21-
Copyright 2024 Bill Dengler
22-
This Source Code Form is subject to the terms of the Mozilla Public
23-
License, v. 2.0. If a copy of the MPL was not distributed with this
24-
file, You can obtain one at https://mozilla.org/MPL/2.0/.
25-
"""
26-
27-
2828
@dataclasses.dataclass
2929
class LLMResponse:
3030
message: Message

src/gptcmd/llm/openai.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
"""
2+
This module contains implementations of LLMProvider for OpenAI and Azure.
3+
Copyright 2024 Bill Dengler
4+
This Source Code Form is subject to the terms of the Mozilla Public
5+
License, v. 2.0. If a copy of the MPL was not distributed with this
6+
file, You can obtain one at https://mozilla.org/MPL/2.0/.
7+
"""
8+
9+
110
import inspect
211

312
from decimal import Decimal
@@ -15,15 +24,6 @@
1524
import openai
1625

1726

18-
"""
19-
This module contains implementations of LLMProvider for OpenAI and Azure.
20-
Copyright 2024 Bill Dengler
21-
This Source Code Form is subject to the terms of the Mozilla Public
22-
License, v. 2.0. If a copy of the MPL was not distributed with this
23-
file, You can obtain one at https://mozilla.org/MPL/2.0/.
24-
"""
25-
26-
2727
class OpenAI(LLMProvider):
2828
SUPPORTED_FEATURES = (
2929
LLMProviderFeature.MESSAGE_NAME_FIELD

src/gptcmd/message.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
"""
2+
This module contains classes and types for interacting with messages and
3+
message threads.
4+
Copyright 2024 Bill Dengler
5+
This Source Code Form is subject to the terms of the Mozilla Public
6+
License, v. 2.0. If a copy of the MPL was not distributed with this
7+
file, You can obtain one at https://mozilla.org/MPL/2.0/.
8+
"""
9+
10+
111
import base64
212
import dataclasses
313
import mimetypes
@@ -25,16 +35,6 @@
2535
from strenum import StrEnum
2636

2737

28-
"""
29-
This module contains classes and types for interacting with messages and
30-
message threads.
31-
Copyright 2023 Bill Dengler
32-
This Source Code Form is subject to the terms of the Mozilla Public
33-
License, v. 2.0. If a copy of the MPL was not distributed with this
34-
file, You can obtain one at https://mozilla.org/MPL/2.0/.
35-
"""
36-
37-
3838
T = TypeVar("T")
3939

4040

0 commit comments

Comments
 (0)