meta_api.py
Define Meta adapter class.
MetaAdapter
¶
Bases: LlmAdapter
Define Meta adapter class.
Source code in taglyatelle/llm_providers/meta_api.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | |
__init__(model, temperature=0)
¶
Initialize Meta's llms.
Parameters¶
model LLM model name
temperature LLM temperature
Source code in taglyatelle/llm_providers/meta_api.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | |
invoke_llm(prompt)
¶
Send a request to a LLM.
Parameters¶
prompt The prompt to send to the LLM
Returns¶
Answer of the LLM or None
Source code in taglyatelle/llm_providers/meta_api.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | |