From 3926ce3d3de00b52d274ff0908fc8412dce96867 Mon Sep 17 00:00:00 2001 From: Lei PAN Date: Mon, 13 Apr 2026 14:11:59 +0200 Subject: [PATCH] add lite_llm support --- config.yaml | 20 ++++++++++++++++++++ start_litllm.sh | 1 + 2 files changed, 21 insertions(+) create mode 100644 config.yaml create mode 100644 start_litllm.sh diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..89c443f --- /dev/null +++ b/config.yaml @@ -0,0 +1,20 @@ +litellm_settings: + drop_params: true # This strips 'thinking', etc. before sending to Copilot + +model_list: + - model_name: github_copilot/gpt-4 + litellm_params: + model: github_copilot/gpt-4 + - model_name: github_copilot/claude-sonnet-4.6 + litellm_params: + model: github_copilot/claude-sonnet-4.6 + - model_name: github_copilot/gpt-5.1-codex + model_info: + mode: responses + litellm_params: + model: github_copilot/gpt-5.1-codex + - model_name: github_copilot/text-embedding-ada-002 + model_info: + mode: embedding + litellm_params: + model: github_copilot/text-embedding-ada-002 \ No newline at end of file diff --git a/start_litllm.sh b/start_litllm.sh new file mode 100644 index 0000000..db79220 --- /dev/null +++ b/start_litllm.sh @@ -0,0 +1 @@ +litellm --config config.yaml \ No newline at end of file