fix llm-client headers

This commit is contained in:
InspectorCaracal 2024-08-29 11:41:25 -06:00 committed by GitHub
parent 11f0e8b01a
commit 06e571e6d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,7 +37,7 @@ from evennia.utils.utils import make_iter
DEFAULT_LLM_HOST = "http://127.0.0.1:5000"
DEFAULT_LLM_PATH = "/api/v1/generate"
DEFAULT_LLM_HEADERS = {"Content-Type": "application/json"}
DEFAULT_LLM_HEADERS = {"Content-Type": ["application/json"]}
DEFAULT_LLM_PROMPT_KEYNAME = "prompt"
DEFAULT_LLM_API_TYPE = "" # or openai
DEFAULT_LLM_REQUEST_BODY = {