Commit 711041e0 authored by Your Name's avatar Your Name

Use sk-fakekey format for HuggingFace fake key

parent f098e307
......@@ -405,9 +405,9 @@ class LiteLLMBackend:
self.tool_parser = tool_parser
# For HuggingFace models, set a fake API key to skip auth
# This allows using HF inference endpoints without a real API key
# The key must be in "sk-fakekey" format for litellm to accept it
if use_model and 'huggingface' in use_model.lower():
litellm.api_key = "fake-hf-key"
litellm.api_key = "sk-fakekey"
print("DEBUG litellm: HuggingFace model - using fake key")
# Convert tools to coderai schema format if tools provided
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment