mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 10:55:17 +00:00
Minor changes
This commit is contained in:
parent
2332bf411a
commit
69f55ea68f
4 changed files with 12 additions and 4 deletions
|
|
@ -173,7 +173,7 @@ MAX_TOKENS = {
|
||||||
"mistral/codestral-mamba-latest": 256000,
|
"mistral/codestral-mamba-latest": 256000,
|
||||||
"codestral/codestral-latest": 8191,
|
"codestral/codestral-latest": 8191,
|
||||||
"codestral/codestral-2405": 8191,
|
"codestral/codestral-2405": 8191,
|
||||||
"blackboxai/openai/gpt-4.1": 120000,
|
"openai/blackboxai/openai/gpt-4.1": 120000,
|
||||||
}
|
}
|
||||||
|
|
||||||
USER_MESSAGE_ONLY_MODELS = [
|
USER_MESSAGE_ONLY_MODELS = [
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,10 @@
|
||||||
# See README for details about GitHub App deployment.
|
# See README for details about GitHub App deployment.
|
||||||
|
|
||||||
[openai]
|
[openai]
|
||||||
key = "" # Acquire through https://platform.openai.com
|
# Your OpenAI-compatible API key. For Blackbox.ai, put your Blackbox key here.
|
||||||
|
key = "<BLACKBOX_API_KEY>" # Acquire from your Blackbox.ai account
|
||||||
|
# Optional: specify a custom base URL (useful for Blackbox.ai or self-hosted OpenAI-compatible endpoints)
|
||||||
|
api_base = "https://api.blackbox.ai/"
|
||||||
#org = "<ORGANIZATION>" # Optional, may be commented out.
|
#org = "<ORGANIZATION>" # Optional, may be commented out.
|
||||||
# Uncomment the following for Azure OpenAI
|
# Uncomment the following for Azure OpenAI
|
||||||
#api_type = "azure"
|
#api_type = "azure"
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,10 @@
|
||||||
|
|
||||||
[config]
|
[config]
|
||||||
# models
|
# models
|
||||||
model="gpt-5-2025-08-07"
|
# Default model: Blackbox AI with OpenAI-compatible API
|
||||||
|
# Provider prefix 'openai/' tells LiteLLM which handler to use;
|
||||||
|
# the rest 'blackboxai/openai/gpt-4.1' is passed to the Blackbox API endpoint
|
||||||
|
model="openai/blackboxai/openai/gpt-4.1"
|
||||||
fallback_models=[]
|
fallback_models=[]
|
||||||
#model_reasoning="o4-mini" # dedicated reasoning model for self-reflection
|
#model_reasoning="o4-mini" # dedicated reasoning model for self-reflection
|
||||||
#model_weak="gpt-4o" # optional, a weaker model to use for some easier tasks
|
#model_weak="gpt-4o" # optional, a weaker model to use for some easier tasks
|
||||||
|
|
|
||||||
|
|
@ -42,9 +42,11 @@ cat <<EOF > pr_agent.toml
|
||||||
[general]
|
[general]
|
||||||
log_level = "info"
|
log_level = "info"
|
||||||
|
|
||||||
|
# Keep provider as OpenAI-compatible but default to Blackbox model identifier
|
||||||
|
# Use Blackbox model with OpenAI provider routing
|
||||||
[llm]
|
[llm]
|
||||||
provider = "openai"
|
provider = "openai"
|
||||||
model = "gpt-4o"
|
model = "openai/blackboxai/openai/gpt-4.1"
|
||||||
# Add your API key here or via environment variable
|
# Add your API key here or via environment variable
|
||||||
api_key = ""
|
api_key = ""
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue