Updated run.py to support Huggingface backend
Browse files19 unmodified lines2021222324252617 unmodified lines44454647484950 unmodified lines10010110210310410519 unmodified lines# clear_cache() # Uncomment this line to clear the cachelogging.set_verbosity_debug()dependencies = [{"url": "aiflows/ChatFlowModule", "revision": os.getcwd()},]17 unmodified lines# OpenAI backendapi_information = [ApiInfo(backend_used="openai",api_key = os.getenv("OPENAI_API_KEY"))]# # Azure backend# api_information = ApiInfo(backend_used = "azure",# api_base = os.getenv("AZURE_API_BASE"),50 unmodified lines#9. ~~~~~Optional: Unserve Flow~~~~~~# serving.delete_served_flow(cl, "ReverseNumberAtomicFlow_served")19 unmodified lines2021222324252627282917 unmodified lines47484950515253545550 unmodified lines10610710810911011119 unmodified lines# clear_cache() # Uncomment this line to clear the cachelogging.set_verbosity_debug()# Comment out if using huggingface backend# import litellm# litellm.set_verbose=True# litellm.drop_params=Truedependencies = [{"url": "aiflows/ChatFlowModule", "revision": os.getcwd()},]17 unmodified lines# OpenAI backendapi_information = [ApiInfo(backend_used="openai",api_key = os.getenv("OPENAI_API_KEY"))]#Huggingface backend# api_information = [ApiInfo(backend_used="huggingface",# api_key = os.getenv("HUGGINGFACE_API_KEY"), api_base="http://0.0.0.0:5000/v1/completions")]# # Azure backend# api_information = ApiInfo(backend_used = "azure",# api_base = os.getenv("AZURE_API_BASE"),50 unmodified lines#9. ~~~~~Optional: Unserve Flow~~~~~~# serve_utils.delete_served_flow(cl, "ReverseNumberAtomicFlow_served")
run.py+8-2