llama-index-llms-openai package:
server/<server-name> as the model:
AnacondaModel class supports the following arguments:
For more information on using the llama-index-llms-openai package, see the official documentation.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
llama-index-llms-openai package:
pip install llama-index-llms-openai
pip install packages in your conda environment once all other packages and their dependencies have been installed. For more information on installing pip packages in your conda environment, see Installing pip packages.from anaconda_ai.integrations.llama_index import AnacondaModel
llm = AnacondaModel(
model='OpenHermes-2.5-Mistral-7B_q4_k_m'
)
# Or with custom server configuration:
llm = AnacondaModel(
model='OpenHermes-2.5-Mistral-7B_q4_k_m',
temperature=0.7,
extra_options={
'ctx_size': 4096,
'n_gpu_layers': 20,
'port': 8080
}
)
server/<server-name> as the model:
llm = AnacondaModel('server/my-server')
AnacondaModel class supports the following arguments:
For more information on using the llama-index-llms-openai package, see the official documentation.Was this page helpful?