Skip to content

Commit

Permalink
added exception import in groq
Browse files Browse the repository at this point in the history
  • Loading branch information
tarun-aiplanet authored Jul 1, 2024
1 parent fc9b3ac commit 6e760d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/openagi/llms/groq.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from typing import Any
from langchain_core.messages import HumanMessage
from openagi.exception import OpenAGIException
from openagi.llms.base import LLMBaseModel, LLMConfigModel
from openagi.utils.yamlParse import read_from_env

Expand Down Expand Up @@ -60,4 +61,4 @@ def load_from_env_config() -> GroqConfigModel:
groq_api_key=read_from_env("GROQ_API_KEY", raise_exception=True),
model_name = read_from_env("GROQ_MODEL",raise_exception=True),
temperature=read_from_env("GROQ_TEMP",raise_exception=True)
)
)

0 comments on commit 6e760d7

Please sign in to comment.