This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////////////////////////////////////////////////////////////////////// | |
// In this section, we set the user authentication, user and app ID, model details, and the URL | |
// of the text we want as an input. Change these strings to run your own example. | |
/////////////////////////////////////////////////////////////////////////////////////////////////// | |
// Your PAT (Personal Access Token) can be found in the portal under Authentification | |
const PAT = ''; | |
// Specify the correct user_id/app_id pairings | |
// Since you're making inferences outside your app's scope | |
const USER_ID = 'anthropic'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################################################################################################### | |
# In this section, we set the user authentication, user and app ID, model details, and the URL of | |
# the text we want as an input. Change these strings to run your own example. | |
###################################################################################################### | |
# Your PAT (Personal Access Token) can be found in the portal under Authentification | |
PAT = '' | |
# Specify the correct user_id/app_id pairings | |
# Since you're making inferences outside your app's scope |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################################## | |
# In this section, we set the user authentication, user and app ID, model details, and the URL | |
# of the image we want as an input. Change these strings to run your own example. | |
################################################################################################# | |
# Your PAT (Personal Access Token) can be found in the portal under Authentification | |
PAT = '' | |
# Specify the correct user_id/app_id pairings | |
# Since you're making inferences outside your app's scope | |
USER_ID = 'meta' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################################################################################################### | |
# In this section, we set the user authentication, user and app ID, model details, and the URL of | |
# the text we want as an input. Change these strings to run your own example. | |
###################################################################################################### | |
# Your PAT (Personal Access Token) can be found in the portal under Authentification | |
PAT = '' | |
# Specify the correct user_id/app_id pairings | |
# Since you're making inferences outside your app's scope |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################################################################################################### | |
# In this section, we set the user authentication, user and app ID, model details, and the URL of | |
# the text we want as an input. Change these strings to run your own example. | |
###################################################################################################### | |
# Your PAT (Personal Access Token) can be found in the portal under Authentification | |
PAT = '' | |
# Specify the correct user_id/app_id pairings | |
# Since you're making inferences outside your app's scope | |
USER_ID = 'openai' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################################################################################################### | |
# In this section, we set the user authentication, user and app ID, model details, and the URL of | |
# the text we want as an input. Change these strings to run your own example. | |
###################################################################################################### | |
# Your PAT (Personal Access Token) can be found in the portal under Authentification | |
PAT = '' | |
# Specify the correct user_id/app_id pairings | |
# Since you're making inferences outside your app's scope | |
USER_ID = 'wizardlm' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Below is an instruction that describes a task. Write a response that appropriately completes the request. | |
### Instruction: | |
{instruction} | |
### Response: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################################################################################################### | |
# In this section, we set the user authentication, user and app ID, model details, and the URL of | |
# the text we want as a prompt. Change these strings to run your own example. | |
###################################################################################################### | |
# Your PAT (Personal Access Token) can be found in the portal under Authentification | |
PAT = 'YOUR_PAT_HERE' | |
# Specify the correct user_id/app_id pairings | |
# Since you're making inferences outside your app's scope | |
USER_ID = 'openai' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
os.environ["CLARIFAI_PAT"] = "your personal access token" | |
from clarifai.client.model import Model | |
# Model Predict | |
model_prediction = Model("https://clarifai.com/mistralai/completion/models/mistral-7B-Instruct").predict_by_bytes(b"Write a tweet on future of AI", "text") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################################################################################################### | |
# In this section, we set the user authentication, user and app ID, model details, and the URL of | |
# the text we want as an input. Change these strings to run your own example. | |
###################################################################################################### | |
# Your PAT (Personal Access Token) can be found in the portal under Authentification | |
PAT = '' | |
# Specify the correct user_id/app_id pairings | |
# Since you're making inferences outside your app's scope | |
USER_ID = 'mistralai' |
OlderNewer