Skip to content

Commit

Permalink
WIP- Try AI-Writer and Web research; working. Working on usuability a…
Browse files Browse the repository at this point in the history
…spects.
  • Loading branch information
AJaySi committed Mar 6, 2024
1 parent d75cf30 commit f65ec24
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions alwrity.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from dotenv import load_dotenv
import requests
from rich import print
from rich.console import Console
from rich.text import Text

load_dotenv(Path('.env'))
Expand Down Expand Up @@ -95,8 +94,6 @@ def check_search_apis():
Check if necessary environment variables are present.
Display messages with links on how to get them if not present.
"""
# Create a Rich console
console = Console()

# Use rich.print for styling and hyperlinking
print("\n\n🙋♂️ 🙋♂️ Before doing web research, ensure the following API keys are available:")
Expand Down
2 changes: 1 addition & 1 deletion lib/gpt_providers/openai_chat_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


@retry(wait=wait_random_exponential(min=1, max=60), stop=stop_after_attempt(6))
def openai_chatgpt(prompt, model="gpt-4-1106-preview", temperature=0.2, max_tokens=4096, top_p=0.9, n=1):
def openai_chatgpt(prompt, model="gpt-3.5-turbo-0125", temperature=0.2, max_tokens=4096, top_p=0.9, n=1):
"""
Wrapper function for OpenAI's ChatGPT completion.
Expand Down

0 comments on commit f65ec24

Please sign in to comment.