Abimael Torcate
Claude
commited on
Commit
·
fc2a1ca
1
Parent(s):
32be338
Remove unnecessary OpenAI API key typo fallback
Browse files- Revert to standard OPENAI_API_KEY environment variable
- The typo was only in chat message, not in actual Hugging Face configuration
- Clean up code to use proper environment variable name
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- pages/relatorio_ia.py +1 -2
pages/relatorio_ia.py
CHANGED
|
@@ -49,8 +49,7 @@ def setup_openai():
|
|
| 49 |
pass
|
| 50 |
|
| 51 |
# Priorizar variáveis de ambiente do sistema (Hugging Face Spaces)
|
| 52 |
-
|
| 53 |
-
api_key = os.getenv('OPENAI_API_KEY') or os.getenv('OPEANAI_APY_KEY')
|
| 54 |
|
| 55 |
if not api_key:
|
| 56 |
return False
|
|
|
|
| 49 |
pass
|
| 50 |
|
| 51 |
# Priorizar variáveis de ambiente do sistema (Hugging Face Spaces)
|
| 52 |
+
api_key = os.getenv('OPENAI_API_KEY')
|
|
|
|
| 53 |
|
| 54 |
if not api_key:
|
| 55 |
return False
|