Spaces:
Sleeping
Sleeping
Create general_tools.py
Browse files- tools/general_tools.py +7 -0
tools/general_tools.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def initialize_perplexity(api_key: str, model: str) -> str:
|
| 2 |
+
"""Initialize Perplexity API with your API key and model.
|
| 3 |
+
Args:
|
| 4 |
+
api_key: Your Perplexity API key
|
| 5 |
+
model: The Perplexity model to use
|
| 6 |
+
"""
|
| 7 |
+
return f"Perplexity API initialized successfully with model: {model}!"
|