Skip to content

Commit

Permalink
Removed debug prints, and other cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitprasad15 committed Jan 22, 2025
1 parent 70ae662 commit 1a7be38
Show file tree
Hide file tree
Showing 4 changed files with 191 additions and 86 deletions.
6 changes: 0 additions & 6 deletions aisuite/providers/aws_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ def convert_request(
for message in messages
]

import pprint

pprint.pprint(messages)

# Handle system message
system_message = []
if messages and messages[0]["role"] == "system":
Expand Down Expand Up @@ -68,8 +64,6 @@ def convert_request(
}
)

pprint.pprint(formatted_messages)

return system_message, formatted_messages

@staticmethod
Expand Down
2 changes: 0 additions & 2 deletions aisuite/providers/fireworks_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ def chat_completions_create(self, model, messages, **kwargs):
"Content-Type": "application/json",
}

print(data)

try:
# Make the request to Fireworks AI endpoint.
response = httpx.post(
Expand Down
3 changes: 0 additions & 3 deletions aisuite/providers/huggingface_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,9 @@ def chat_completions_create(self, model, messages, **kwargs):
**kwargs, # Include other parameters like temperature, max_tokens, etc.
}

print(transformed_messages)

# Make the API call using the client
response = self.client.chat_completion(model=model, **payload)

print(response)
return self._normalize_response(response)

except Exception as e:
Expand Down
Loading

0 comments on commit 1a7be38

Please sign in to comment.