ArvindSelvaraj commited on
Commit
c39b548
·
verified ·
1 Parent(s): 2b8f81c

Update backend.py

Browse files
Files changed (1) hide show
  1. backend.py +2 -2
backend.py CHANGED
@@ -9,7 +9,7 @@ from openai import OpenAI
9
  # Initialize OpenAI API with Nvidia's llama model
10
  client = OpenAI(
11
  base_url="https://integrate.api.nvidia.com/v1",
12
- api_key="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"
13
  )
14
 
15
  def clean_test_case_output(text):
@@ -86,7 +86,7 @@ def generate_testcases(user_story):
86
  try:
87
  # Call the Nvidia llama API with the refined prompt
88
  completion = client.chat.completions.create(
89
- model="meta/llama-3.1-405b-instruct", # Using llama3.1 405b model
90
  messages=[
91
  {"role": "user", "content": prompt}
92
  ],
 
9
  # Initialize OpenAI API with Nvidia's llama model
10
  client = OpenAI(
11
  base_url="https://integrate.api.nvidia.com/v1",
12
+ api_key="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"
13
  )
14
 
15
  def clean_test_case_output(text):
 
86
  try:
87
  # Call the Nvidia llama API with the refined prompt
88
  completion = client.chat.completions.create(
89
+ model="meta/llama-3.1-70b-instruct", # Using llama3.1 70b model
90
  messages=[
91
  {"role": "user", "content": prompt}
92
  ],