JBHF commited on
Commit
24e5b26
·
verified ·
1 Parent(s): 6545102

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +3 -2
crew.py CHANGED
@@ -41,7 +41,7 @@ class NewsletterGenCrew:
41
  tasks_config = "tasks.yaml"
42
 
43
  def llm(self):
44
- # llm = ChatAnthropic(model_name="claude-3-sonnet-20240229", max_tokens=4096) # ORIGINAL
45
  #llm = ChatAnthropic(model_name="claude-3-sonnet-20240229",
46
  # # max_tokens=4096,
47
  # cache=True,
@@ -55,7 +55,8 @@ class NewsletterGenCrew:
55
 
56
  # llm = ChatGroq(model="llama3-70b-8192")
57
  # https://console.groq.com/docs/rate-limits
58
- llm = ChatGroq(model="mixtral-8x7b-32768") # JB 13-06-2024 - geeft af en toe rate limit errors
 
59
 
60
  # llm = ChatGoogleGenerativeAI(google_api_key=os.getenv("GOOGLE_API_KEY"))
61
 
 
41
  tasks_config = "tasks.yaml"
42
 
43
  def llm(self):
44
+ llm = ChatAnthropic(model_name="claude-3-sonnet-20240229", max_tokens=4096) # ORIGINAL
45
  #llm = ChatAnthropic(model_name="claude-3-sonnet-20240229",
46
  # # max_tokens=4096,
47
  # cache=True,
 
55
 
56
  # llm = ChatGroq(model="llama3-70b-8192")
57
  # https://console.groq.com/docs/rate-limits
58
+ # llm = ChatGroq(model="mixtral-8x7b-32768") # JB 13-06-2024 - geeft af en toe rate limit errors
59
+ # IN HF SPACES STREAMLIT APP: BadRequestError: Error code: 400 - {'error': {'message': 'Organization has been restricted. Please reach out to support if you believe this was in error.', 'type': 'invalid_request_error', 'code': 'organization_restricted'}}
60
 
61
  # llm = ChatGoogleGenerativeAI(google_api_key=os.getenv("GOOGLE_API_KEY"))
62