Skip to content

Instantly share code, notes, and snippets.

View Axhat's full-sized avatar
🍋
Focusing

Akshat Kumar Axhat

🍋
Focusing
View GitHub Profile
@Axhat
Axhat / LLM Failover Resilience.py
Created March 26, 2026 13:15
LLM Failover Machine Coding Question | Python
# Online Python compiler (interpreter) to run Python online.
# Write Python 3 code in this online editor and run it.
# LLM Failover router
# Prvovider - OpenAI, Azure, Google, Anthropic, Cohere, HuggingFace
# Configurable -
# Ideal scenaria - 100% requests would goes to primary provider
# when primary fails / degreaded state then 95% goes to secondary provider and 5% goes to primary provider for testing
# when primary recovers then 100% goes to primary provider
echo "Startup git bash"
path_to_key = "" # Enter path of the key to add
path_to_repo = "" # Enter path of repo to cd into
cd "$path_to_repo"
eval $(ssh-agent -s) # Starting up the ssh-agent
#HILL CIPHER
#include <bits/stdc++.h>
using namespace std;
vector<int> multiply(vector<vector<int>> mat,vector<int> vec){
vector<int> ans(vec.size(),0);
for(int i=0;i<mat.size();i++){
for(int j=0;j<vec.size();j++){
ans[i] += mat[i][j]*vec[j];
}
ans[i]%=26;
@Axhat
Axhat / Configs.txt
Last active December 4, 2022 14:17
ok ok ok
1. Find S
import pandas as pd
import numpy as np
def train(X, y):
# Create the most specific hypothesis
hypothesis = []
for i in range(len(X[0])):
hypothesis.append("null")