Skip to content

Commit 160c418

Browse files
authored
NO-SNOW: Skip missed failing FIPS test. (#4203)
1 parent 7601197 commit 160c418

4 files changed

Lines changed: 10 additions & 6 deletions

File tree

src/snowflake/snowpark/dataframe_ai_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def complete(
8888
... prompt="Answer this question briefly: {q}",
8989
... input_columns={"q": col("question")},
9090
... output_column="answer",
91-
... model="snowflake-arctic"
91+
... model="llama3.1-8b"
9292
... )
9393
>>> result_df.columns
9494
['QUESTION', 'ANSWER']

src/snowflake/snowpark/functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13690,7 +13690,7 @@ def ai_complete(
1369013690

1369113691
>>> # Basic completion with string prompt
1369213692
>>> df = session.range(1).select(
13693-
... ai_complete('snowflake-arctic', 'What are large language models?').alias("response")
13693+
... ai_complete('llama3.1-8b', 'What are large language models?').alias("response")
1369413694
... )
1369513695
>>> len(df.collect()[0][0]) > 10
1369613696
True
@@ -13762,7 +13762,7 @@ def ai_complete(
1376213762
>>> # Using prompt object from prompt() function
1376313763
>>> df = session.range(1).select(
1376413764
... ai_complete(
13765-
... model='claude-3-7-sonnet',
13765+
... model='claude-4-sonnet',
1376613766
... prompt=prompt("Extract the kitchen appliances identified in this image. Respond in JSON only with the identified appliances? {0}", to_file('@mystage/kitchen.png')),
1376713767
... )
1376813768
... )

tests/integ/test_dataframe_ai.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_dataframe_ai_complete_with_named_placeholders(session):
3939
"category": col("category"),
4040
},
4141
output_column="sentiment_analysis",
42-
model="snowflake-arctic",
42+
model="llama3.1-8b",
4343
)
4444

4545
# Check schema
@@ -96,7 +96,7 @@ def test_dataframe_ai_complete_default_output_column(session):
9696
result_df = df.ai.complete(
9797
prompt="Answer the question",
9898
input_columns=[col("question")],
99-
model="snowflake-arctic",
99+
model="llama3.1-8b",
100100
model_parameters={
101101
"temperature": 0.8,
102102
"top_p": 0.95,
@@ -135,7 +135,7 @@ def test_dataframe_ai_complete_error_handling(session):
135135
df.ai.complete(
136136
prompt="Test",
137137
input_columns="invalid", # Should be list or dict
138-
model="snowflake-arctic",
138+
model="llama3.1-8b",
139139
)
140140

141141

tests/integ/test_stored_procedure.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2254,6 +2254,10 @@ def proc_function(session_: Session) -> str:
22542254
)
22552255

22562256

2257+
@pytest.mark.skipif(
2258+
"FIPS_TEST" in os.environ,
2259+
reason="SNOW-3425553: need FIPS mode investigation",
2260+
)
22572261
@pytest.mark.skipif(
22582262
IS_IN_STORED_PROC, reason="use schema is not allowed in stored proc (owner mode)"
22592263
)

0 commit comments

Comments
 (0)