Python Tempfile For LiteLLM and Vertex AI
Use Python's tempfile for saving Google Cloud credentials locally when you call Vertex AI endpoints with LiteLLM
Use Python's tempfile for saving Google Cloud credentials locally when you call Vertex AI endpoints with LiteLLM
Do you store your application credentials for GCP service accounts on disk? Stop - there's a better way!
Do your users keep inputing characters in your input fields that cause failures? Do your developers fail to understand the basic domain requirements of these input fields? Learn how to ask ChatGPT for help!
Dig into a simple outline of array indexing and slicing in JavaScript, Python and C++.
Do you hunt for bugs? If not, your software doesn't work. For those of you with working software, here's a formula for bug hunting successfully.
In this article learn a quick and simple strategy to merge dictionaries with Nonetype values for similar keys.
Do you loop through dictionaries to increment values? Of course you do! There's a better way...
Do you send data from Python to a web service? I bet you did not know your classes could be JSON serializable. Herein I'll show you how.
Get new entries by email
Occasional notes on Rust, TypeScript, Python, finance, and building on the web.