Potential mismatch between the current repository, README, and the video walkthrough?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- github, python
- Ambito
- documentation
Direzione di ricerca
Inizia confrontando chat.py e .env.sample con le istruzioni di configurazione nella README, quindi esegui il flusso Codespaces documentato e analizza la gestione di API_HOST. Conferma quale configurazione dell'host è supportata dal repository attuale e se viene utilizzato GITHUB_TOKEN. Il lavoro è terminato quando il codice, la README e la guida video descrivono coerentemente la configurazione consigliata e i requisiti di autenticazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hello,
I am testing the repository in GitHub Codespaces and found what appears to be a mismatch between the current repository, README, and the video walkthrough.
Repository:
https://github.com/Azure-Samples/python-openai-demos
In the video walkthrough, the presenter states that:
- GitHub Models can be used from Codespaces.
- The default setup should work without additional configuration.
- Codespaces provides a GitHub token automatically.
However, when testing the current repository:
-
The current chat.py contains:
API_HOST = os.getenv("API_HOST", "azure")
-
Running chat.py after copying the sample environment file:
cp .env.sample .env
python chat.py
results in Azure authentication errors:
DefaultAzureCredential failed to retrieve a token...
- GitHub Codespaces does appear to provide a GITHUB_TOKEN environment variable:
echo ${GITHUB_TOKEN:0:10}
returns a valid token prefix.
-
Attempting to configure:
"API_HOST=github"
does not work because the current code falls through to the OpenAI path and expects OPENAI_KEY instead.
As a result, a new user following the video walkthrough may reasonably expect the examples to run in Codespaces using GitHub Models, but the current repository appears to require Azure, OpenAI, or Ollama configuration instead.
Could you clarify whether:
- GitHub Models support was removed,
- the video references a different version of the repository,
- or the README/code should be updated to reflect the current recommended setup?
Additional note:
I also searched the repository for GITHUB_TOKEN references:
grep -R "GITHUB_TOKEN" .
The only matches were inside .git/hooks scripts and not within the application code itself. I could not find any GitHub Models-specific code path in the demo scripts.
This seems inconsistent with the video walkthrough, which demonstrates using GitHub Models directly from Codespaces with the automatically provided GITHUB_TOKEN.
Thank you for your time and for maintaining the project. Forgive me if I got anything mistaken or this was intentional.
- Lingua principale
- Python
- Stelle
- 383
- Fork
- 296
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Azure-Samples/python-openai-demos
-
Add azd provision workflow to automate Azure infrastructure provisioningForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Azure-Samples/python-openai-demos#7 · 1 reazione · 1 assegnatario ·
Tutte le issue di Azure-Samples/python-openai-demos
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
lidofinance/diffyscan#239 ·
I maintainer di solito rispondono entro 1 giorno
-
docs: the dev-setup table and AGENTS.md name the reviewed_by guard that CI's Changelog job runsApertaarea: tools documentation good first issue ready for a contributor
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
eyalgolan/statecraft-israel#873 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
GET rooms API returns 500 due to nonexistent Room.is_active attributeForse già presa @Mars-60 l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Add cover art to song rowsApertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 5 giorni
-
Harmony OPeNDAP SubSetter (HOSS) Geographic production rssmif16d 7 XYZ_PROV
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
nasa/harmony-autotester#341 ·