infinitymatter commited on
Commit
814ade4
·
verified ·
1 Parent(s): c9df750

Update src/models.py

Browse files
Files changed (1) hide show
  1. src/models.py +5 -4
src/models.py CHANGED
@@ -2,6 +2,7 @@ from openai import OpenAI
2
  import anthropic
3
  import os
4
  from dotenv import load_dotenv
 
5
 
6
  # Load environment variables from .env file
7
  load_dotenv(override=True)
@@ -18,12 +19,12 @@ if not anthropic_api_key:
18
  print("❌ Anthropic API Key is missing!")
19
 
20
  # Initialize API clients
21
- openai = OpenAI(api_key=openai_api_key)
22
- claude = anthropic.Anthropic()
23
 
24
  # Model names
25
- OPENAI_MODEL = "gpt-4o-mini"
26
- CLAUDE_MODEL = "claude-3-5-sonnet-20240620"
27
 
28
  # Call OpenAI's GPT model with prompt and system message
29
  def get_gpt_completion(prompt, system_message):
 
2
  import anthropic
3
  import os
4
  from dotenv import load_dotenv
5
+ from huggingface_hub import HfApi;
6
 
7
  # Load environment variables from .env file
8
  load_dotenv(override=True)
 
19
  print("❌ Anthropic API Key is missing!")
20
 
21
  # Initialize API clients
22
+ openai = HfApi(token=openai_api_key)
23
+ claude = HfApi(token=anthropic_api_key)
24
 
25
  # Model names
26
+ OPENAI_MODEL = "mistralai/Mistral-7B-Instruct-v0.3"
27
+ CLAUDE_MODEL = "mistralai/Mistral-7B-Instruct-v0.3"
28
 
29
  # Call OpenAI's GPT model with prompt and system message
30
  def get_gpt_completion(prompt, system_message):