Skip to content

Commit

Permalink
Format Python code with psf/black push
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions authored and github-actions committed Nov 12, 2023
1 parent ea985a7 commit 7e40f20
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cogs/text_service_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ def __init__(
assert self.CONVERSATION_STARTER_TEXT_VISION is not None

except Exception:
self.CONVERSATION_STARTER_TEXT = self.CONVERSATION_STARTER_TEXT_MINIMAL = self.CONVERSATION_STARTER_TEXT_VISION = (
self.CONVERSATION_STARTER_TEXT = (
self.CONVERSATION_STARTER_TEXT_MINIMAL
) = self.CONVERSATION_STARTER_TEXT_VISION = (
"You are an artificial intelligence that is able to do anything, and answer any question,"
"I want you to be my personal assistant and help me with some tasks. "
"and I want you to make well-informed decisions using the data that you have been trained on, "
Expand Down Expand Up @@ -1250,9 +1252,7 @@ async def converse_command(
model_selection = self.model.model if not model else model

self.conversation_threads[target.id] = Thread(target.id)
self.conversation_threads[target.id].model = (
model_selection
)
self.conversation_threads[target.id].model = model_selection

# Set the overrides for the conversation
self.conversation_threads[target.id].set_overrides(
Expand Down Expand Up @@ -1314,7 +1314,7 @@ async def converse_command(
self.conversation_threads[target.id].history.append(
EmbeddedConversationItem(self.CONVERSATION_STARTER_TEXT, 0)
)
else: # Vision case, dont add the image-ocr image-caption, etc helpers here.
else: # Vision case, dont add the image-ocr image-caption, etc helpers here.
self.conversation_threads[target.id].history.append(
EmbeddedConversationItem(self.CONVERSATION_STARTER_TEXT_VISION, 0)
)
Expand Down

0 comments on commit 7e40f20

Please sign in to comment.