diff --git a/custom_components/groq_cloud_api/__init__.py b/custom_components/groq_cloud_api/__init__.py index 3c92754..3fc639d 100644 --- a/custom_components/groq_cloud_api/__init__.py +++ b/custom_components/groq_cloud_api/__init__.py @@ -20,6 +20,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: GroqConfigEntry) -> bool LOGGER.info("Setting up %s", entry) client = groq.AsyncGroq(api_key=entry.data[CONF_API_KEY]) + + # TODO: I get async errors when trying to call the list function. But this would be the proper way to validate the API key. # try: # await hass.async_add_executor_job(client.with_options(timeout=10.0).models.list) # except groq.AuthenticationError as err: diff --git a/custom_components/groq_cloud_api/const.py b/custom_components/groq_cloud_api/const.py index 822ea43..e619aa4 100644 --- a/custom_components/groq_cloud_api/const.py +++ b/custom_components/groq_cloud_api/const.py @@ -10,7 +10,7 @@ DEFAULT_NAME = "Groq Cloud API" CONF_RECOMMENDED = "recommended" CONF_PROMPT = "prompt" CONF_CHAT_MODEL = "chat_model" -RECOMMENDED_CHAT_MODEL = "llama3-groq-8b-8192-tool-use-preview" +RECOMMENDED_CHAT_MODEL = "llama-3.1-70b-versatile" CONF_MAX_TOKENS = "max_tokens" RECOMMENDED_MAX_TOKENS = 150 CONF_TOP_P = "top_p" diff --git a/custom_components/groq_cloud_api/manifest.json b/custom_components/groq_cloud_api/manifest.json index feb6a11..f3b410d 100644 --- a/custom_components/groq_cloud_api/manifest.json +++ b/custom_components/groq_cloud_api/manifest.json @@ -1,7 +1,7 @@ { "domain": "groq_cloud_api", "name": "Groq Cloud API", - "version": "0.0.6", + "version": "0.1.0", "codeowners": [ "@HunorLaczko" ],