Skip to content

Commit e243654

Browse files
author
Paweł Kędzia
committed
Simplify OpenAI client test: drop os import and env‑based API key, use placeholder key, and remove unused model_2 variable.
1 parent 815adad commit e243654

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/openai-client.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
import os
21
from openai import OpenAI
32

4-
os.environ["OPENAI_API_KEY"] = "<NOT NEEDED>"
5-
63
client = OpenAI(
7-
api_key=os.environ.get("OPENAI_API_KEY"),
4+
api_key="<EMPTY>",
85
base_url="http://192.168.100.65:8080/v1",
96
)
107

118
use_stream = True
129

13-
model_1 = "google/gemma-3-12b-it"
1410
model_2 = "gpt-oss:120b"
11+
model_1 = "google/gemma-3-12b-it"
1512

1613
response = client.chat.completions.create(
1714
model=model_1,

0 commit comments

Comments
 (0)