Skip to content

Commit

Permalink
debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
zMardone committed Dec 27, 2024
1 parent cb086e5 commit 8b57004
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion nexus/zeroshot/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,14 @@ def _invoke_runpod(self, prompt):
return response

def _invoke_zeroshot(self, model_backend: str):
print("[ + INVOKE ZEROSHOT + ]")
return {
"runpod": self._invoke_runpod,
"bedrock": self._invoke_bedrock
}.get(model_backend)

def _invoke_function_calling(self):

print("[ + INVOKE FUNCTION CALLING + ]")
classifier = ChatGPTFunctionClassifier(
agent_goal=self.zeroshot_data.get("context"),
)
Expand All @@ -140,6 +141,7 @@ def _invoke_function_calling(self):
formatted_classification = classification_formater.get_classification(self.zeroshot_data)

response = {"output": formatted_classification}
print("Function calling response: ", response)
return response

def invoke(self):
Expand Down
2 changes: 1 addition & 1 deletion router/clients/zeroshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def __init__(self, prompt: str) -> None:
self.prompt = prompt

def fast_predict(self, message: str, actions: List[Dict], language: str = "por"):
print("[+ Calling Zeroshot in Nexus +]")
print("[+ NexusZeroshotClient FastPredict +]")
zeroshot_data = {
'context': self.prompt,
'language': language,
Expand Down

0 comments on commit 8b57004

Please sign in to comment.