Loading Configurations
Loads configurations realted to LLM model, API keys and temprture to be used.
load_config(api_key=None, model=None, temperature=None)
If api_key
, model
or temperature
provided while loading config uses it,
otherwise loads it from environment varilable.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
api_key
|
str
|
API Key to connect with model |
None
|
model
|
str
|
model name in |
None
|
temperature
|
float
|
temperature parameter for model. |
None
|
Returns:
Type | Description |
---|---|
Dictionary containing |
Source code in promptrefiner/config.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|