Running the Application
Understanding the application
from secret_ai_sdk.secret_ai import ChatSecret
from secret_ai_sdk.secret import Secretsecret_client = Secret()models = secret_client.get_models()
urls = secret_client.get_urls(model=models[0])4. Setting Up the LLM Client
secret_ai_llm = ChatSecret(
base_url=urls[0],
model=models[0]',
temperature=1.0
)5. Defining the Chat Messages
6. Invoking the Model
Manually Setting Up node_url
node_urlRun the application
Conclusion
Last updated
Was this helpful?