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