Skip to content

Commit a4735ca

Browse files
Refactor Google GenAI password generation call
1 parent 878583c commit a4735ca

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,7 @@
417417
except:
418418
response= google_client.models.generate_content(
419419
model="gemini-2.0-flash",
420-
contents="Generate a strong password and display only the password, no explanations, no extra text, and nothing else under any circumstances, Dont regenerate any password everytime generate a unique one and always generate minimum length of 16.",
421-
max_output_tokens=100,
422-
temperature=0.2,
420+
contents="Generate a strong password and display only the password, no explanations, no extra text, and nothing else under any circumstances, Dont regenerate any password everytime generate a unique one and always generate minimum length of 16."
423421
)
424422
# Store the password in session state
425423
st.session_state.generated_password = response.text

0 commit comments

Comments
 (0)