session_defaults
session_defaults(**kwargs)
View and set defaults for the session with LLM
Details
Change or add any default to use as options for your interaction with the LLM. The defaults will apply both in the console interaction (chapy.chat()
), and the Shiny app interaction (chapy.app()
)
Parameters
Name | Type | Description | Default |
---|---|---|---|
**kwargs |
Arguments to override the defaults. Such as the ‘model’, amd ‘system_msg’ | {} |
Examples
import chapy
chapy.defaults()
# Override the model to use
= "llama2") chapy.defaults(model