@@ -127,28 +127,28 @@ pub async fn new_llm_generation_client(
127127 }
128128 LlmApiType :: OpenAi => Box :: new ( openai:: Client :: new ( address, api_key, api_config) ?)
129129 as Box < dyn LlmGenerationClient > ,
130- LlmApiType :: Gemini => Box :: new ( gemini:: AiStudioClient :: new ( address, api_key, api_config ) ?)
130+ LlmApiType :: Gemini => Box :: new ( gemini:: AiStudioClient :: new ( address, api_key) ?)
131131 as Box < dyn LlmGenerationClient > ,
132132 LlmApiType :: VertexAi => {
133133 Box :: new ( gemini:: VertexAiClient :: new ( address, api_key, api_config) . await ?)
134134 as Box < dyn LlmGenerationClient >
135135 }
136136 LlmApiType :: Anthropic => {
137- Box :: new ( anthropic:: Client :: new ( address, api_key, api_config ) . await ?)
137+ Box :: new ( anthropic:: Client :: new ( address, api_key) . await ?)
138138 as Box < dyn LlmGenerationClient >
139139 }
140140 LlmApiType :: LiteLlm => {
141- Box :: new ( litellm:: Client :: new_litellm ( address, api_key, api_config ) . await ?)
141+ Box :: new ( litellm:: Client :: new_litellm ( address, api_key) . await ?)
142142 as Box < dyn LlmGenerationClient >
143143 }
144144 LlmApiType :: OpenRouter => {
145- Box :: new ( openrouter:: Client :: new_openrouter ( address, api_key, api_config ) . await ?)
145+ Box :: new ( openrouter:: Client :: new_openrouter ( address, api_key) . await ?)
146146 as Box < dyn LlmGenerationClient >
147147 }
148148 LlmApiType :: Voyage => {
149149 api_bail ! ( "Voyage is not supported for generation" )
150150 }
151- LlmApiType :: Vllm => Box :: new ( vllm:: Client :: new_vllm ( address, api_key, api_config ) . await ?)
151+ LlmApiType :: Vllm => Box :: new ( vllm:: Client :: new_vllm ( address, api_key) . await ?)
152152 as Box < dyn LlmGenerationClient > ,
153153 } ;
154154 Ok ( client)
@@ -164,11 +164,11 @@ pub async fn new_llm_embedding_client(
164164 LlmApiType :: Ollama => {
165165 Box :: new ( ollama:: Client :: new ( address) . await ?) as Box < dyn LlmEmbeddingClient >
166166 }
167- LlmApiType :: Gemini => Box :: new ( gemini:: AiStudioClient :: new ( address, api_key, api_config ) ?)
167+ LlmApiType :: Gemini => Box :: new ( gemini:: AiStudioClient :: new ( address, api_key) ?)
168168 as Box < dyn LlmEmbeddingClient > ,
169169 LlmApiType :: OpenAi => Box :: new ( openai:: Client :: new ( address, api_key, api_config) ?)
170170 as Box < dyn LlmEmbeddingClient > ,
171- LlmApiType :: Voyage => Box :: new ( voyage:: Client :: new ( address, api_key, api_config ) ?)
171+ LlmApiType :: Voyage => Box :: new ( voyage:: Client :: new ( address, api_key) ?)
172172 as Box < dyn LlmEmbeddingClient > ,
173173 LlmApiType :: VertexAi => {
174174 Box :: new ( gemini:: VertexAiClient :: new ( address, api_key, api_config) . await ?)
0 commit comments