I have given the api key and installed openai in python for a seperate task. But when i try to use alfred i get no response. Enabling logging gave me this error. Please let me know how to resolve this
Processing complete
[14:10:45.320] ChatFred[Run Script] Passing output 'what is the largest tower in the world' to Conditional
[14:10:45.322] ChatFred[Conditional] Processing complete
[14:10:45.324] ChatFred[Conditional] Passing output 'what is the largest tower in the world' to Conditional
[14:10:45.325] ChatFred[Conditional] Processing complete
[14:10:45.326] ChatFred[Conditional] Passing output 'what is the largest tower in the world' to Conditional
[14:10:45.327] ChatFred[Conditional] Processing complete
[14:10:45.328] ChatFred[Conditional] Passing output 'what is the largest tower in the world' to Run Script
[14:10:45.329] ChatFred[Conditional] Passing output 'what is the largest tower in the world' to Run Script
[14:10:45.344] ChatFred[Run Script] Processing complete
[14:10:45.345] ChatFred[Run Script] Passing output '1' to Conditional
[14:10:45.345] ChatFred[Conditional] Processing complete
[14:10:45.346] ChatFred[Conditional] Passing output '1' to Large Type
[14:10:45.663] ERROR: ChatFred[Run Script] Traceback (most recent call last):
File "/Users/mac/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.E4A15383-EFF1-4A75-9AA2-80E9FF27DEF1/src/text_chat.py", line 14, in <module>
from error_handler import (
File "/Users/mac/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.E4A15383-EFF1-4A75-9AA2-80E9FF27DEF1/src/error_handler.py", line 50, in <module>
def exception_response(error: openai.error) -> str:
^^^^^^^^^^^^
AttributeError: module 'openai' has no attribute 'error'
[14:10:45.679] ChatFred[Run Script] Processing complete
[14:10:45.680] ChatFred[Run Script] Passing output '' to Automation Task
[14:10:45.680] ChatFred[Automation Task] Running task 'Identify Front App' with no arguments
[14:10:45.681] ChatFred[Run Script] Passing output '' to Arg and Vars
[14:10:45.681] ChatFred[Arg and Vars] Processing complete
[14:10:45.682] ChatFred[Arg and Vars] Passing output '' to Conditional
[14:10:45.682] ChatFred[Conditional] Processing complete
[14:10:45.683] ChatFred[Conditional] Passing output '' to Copy to Clipboard
[14:10:45.683] ChatFred[Run Script] Passing output '' to Debug
[14:10:45.683] ChatFred[Debug] VARIABLES:{
always_copy_to_clipboard = "1"
always_speak = "0"
api_key = "sk-proj-QUd2JMZJCintuNxp8anwT3BlbkFJAL3WsgG6u3ducovHuOJK"
cf_aliases = "joke=tell me a joke;"
chat_gpt_model = "gpt-3.5-turbo"
chat_max_tokens = ""
completion_max_tokens = ""
custom_api_url = ""
frequency_penalty = "0.0"
history_length = "3"
history_type = "search"
image_size = "512"
instruct_gpt_model = "text-davinci-003"
jailbreak_prompt = ""
loading_indicator_text = "💠Stay tuned... ChatGPT is thinking"
paste_response = "0"
presence_penalty = "0.0"
save_to_file = "0"
save_to_file_dir = "/Users/mac"
show_loading_indicator = "1"
show_notifications = "1"
stream_reply = "0"
system_prompt = "You are a helpful assistant."
temperature = "0"
top_p = "1"
transformation_prompt = "Write the text so that each letter is replaced by its successor in the alphabet."
user_prompt = "what is the largest tower in the world"
}
RESPONSE:''
[14:10:45.684] ChatFred[Run Script] Passing output '' to Conditional
[14:10:45.684] ChatFred[Conditional] Processing complete
[14:10:45.685] ChatFred[Conditional] Passing output '' to Conditional
[14:10:45.685] ChatFred[Conditional] Processing complete
[14:10:45.685] ChatFred[Conditional] Passing output '' to Large Type
[14:10:45.686] ChatFred[Run Script] Passing output '' to Conditional
[14:10:46.149] ChatFred[Automation Task] Processing complete
[14:10:46.157] ChatFred[Automation Task] Passing output 'Alfred Preferences' to Arg and Vars