File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 5353
5454 test :
5555 desc : Run tests
56- cmd : OPENAI_API_KEY= ANTHROPIC_API_KEY= GOOGLE_API_KEY= MISTRAL_API_KEY= go test {{.CLI_ARGS}} ./...
56+ cmd : OPENAI_API_KEY= ANTHROPIC_API_KEY= GOOGLE_API_KEY= MISTRAL_API_KEY= GITHUB_TOKEN= go test {{.CLI_ARGS}} ./...
5757
5858 build-local :
5959 desc : Build binaries for local host platform
Original file line number Diff line number Diff line change @@ -62,6 +62,6 @@ agents:
6262models :
6363 github-model :
6464 provider : openai
65- model : openai/ gpt-5
65+ model : gpt-5
6666 base_url : https://models.github.ai/inference
67- token_Key : ${ GITHUB_TOKEN}
67+ token_key : GITHUB_TOKEN
Original file line number Diff line number Diff line change @@ -55,8 +55,10 @@ func GatherEnvVarsForModels(cfg *latest.Config) []string {
5555 for modelName := range modelNames {
5656 model := cfg .Models [modelName ]
5757
58- // Use the token environment variable from the alias if available
59- if alias , exists := provider .Aliases [model .Provider ]; exists {
58+ if model .TokenKey != "" {
59+ requiredEnv [model .TokenKey ] = true
60+ } else if alias , exists := provider .Aliases [model .Provider ]; exists {
61+ // Use the token environment variable from the alias if available
6062 if alias .TokenEnvVar != "" {
6163 requiredEnv [alias .TokenEnvVar ] = true
6264 }
You can’t perform that action at this time.
0 commit comments