Skip to content

Commit 664a2bb

Browse files
Merge pull request #10 from rossarmstrong/main
Modified Module Docstring
2 parents 5b439a4 + 9875645 commit 664a2bb

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

chatgpt_text.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
#######################################################################################################################
2-
# Filename: chatgpt_text.py
3-
# Creation Date: 4/01/2023
4-
# Tested on: Python 3.11
5-
# PEP8 Exceptions: None
6-
# Docstring format: Sphinx
7-
# Description: This is a test script that provides access to OpenAI's chatGPT model. It creates a function chatgpt_text
8-
# that allows a users to enter a text prompt, question or scenario and also adjust the model settings.
9-
# The answer will be output on the screen. A response can also output as a JSON file that contains
10-
# additional metadata.
11-
#######################################################################################################################
1+
"""
2+
This is a test script that provides access to OpenAI's ChatGPT model.
3+
It creates a function chatgpt_text that allows a user to enter a text prompt (question or scenario) to ask ChatGPT.
4+
This function also allows a user to adjust the ChatGPT model configurations.
5+
ChatGPTs response will be output in the UI. A response can also output as a JSON file that contains additional metadata.
6+
7+
Functions:
8+
chatgpt_text(prompt, model, max_tokens, temperature top_p, frequency_penalty, presence_penalty, n, output_to_file)
9+
-> object
10+
"""
1211

1312
# Import os, dotenv, openai, json
1413
import os

0 commit comments

Comments
 (0)