a2aproject / a2aproject/a2a-samples

AG2 sample uses OpenAI by default, inconsistent with other samples

Aberta Para iniciantes
#454 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Jupyter Notebook
Estrelas
1.8k
Forks
751
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

The AG2 agent sample (`samples/python/agents/ag2/`) is hardcoded to use OpenAI (`gpt-4o-mini`) while most other samples in this repo default to Google Gemini via `GOOGLE_API_KEY`.

This means users following the demo UI setup (which provides a `GOOGLE_API_KEY`) cannot use the AG2 sample without also configuring a separate OpenAI key.

Switching the default to Gemini (with OpenAI as fallback) would make the AG2 sample consistent with the rest of the repo and simplify the getting-started experience.

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Look at the AG2 agent sample in `samples/python/agents/ag2/` to find where the OpenAI model is hardcoded. Compare with other samples to see how they default to Google Gemini using the `GOOGLE_API_KEY`. Change the default model to Gemini, likely in a configuration file or the main agent initialization code, and ensure OpenAI remains as a fallback. Test by running the sample with only a Google API key set.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
python
Domínio
ai-infra-agents
Tipo de issue
Bug
Dificuldade
2/5
Tempo estimado
1-3 horas
Status de atividade
Estagnada
Clareza
Claramente especificada
Facilidade para iniciantes
70/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.