File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -198,4 +198,11 @@ jobs:
198198 EVOLUTION_KEY_ID : ${{ secrets.EVOLUTION_KEY_ID }}
199199 EVOLUTION_SECRET : ${{ secrets.EVOLUTION_SECRET }}
200200 EVOLUTION_BASE_URL : ${{ secrets.EVOLUTION_BASE_URL }}
201- run : make run-tokens
201+ run : make run-tokens
202+
203+ - name : Run foundation models examples
204+ env :
205+ EVOLUTION_KEY_ID : ${{ secrets.EVOLUTION_KEY_ID }}
206+ EVOLUTION_SECRET : ${{ secrets.EVOLUTION_SECRET }}
207+ EVOLUTION_BASE_URL : ${{ secrets.EVOLUTION_BASE_URL }}
208+ run : make run-foundation-models
Original file line number Diff line number Diff line change 5959test :
6060 rye run pytest tests/ -v --cov=evolution_openai --cov-report=html --cov-report=term --cov-report=xml:coverage.xml --cov-report=json:coverage.json
6161
62+ test-foundation-models :
63+ rye run pytest tests/test_foundation_models_* .py -v
64+
6265# Code quality
6366lint :
6467 rye run ruff check .
Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ def basic_foundation_models_example():
8181 print (f"✅ Ответ: { content } " )
8282 print (f"📊 Модель: { response .model } " )
8383 print (f"🔢 Токенов: { response .usage .total_tokens } " )
84- print (f"🏷️ Project ID: { PROJECT_ID or 'не установлен' } " )
8584 return True
8685 else :
8786 print ("❌ Получен пустой ответ" )
@@ -340,7 +339,6 @@ def main():
340339 print ("🚀 Evolution Foundation Models - Примеры использования\n " )
341340 print (f"🌐 Endpoint: { ENDPOINT_URL } " )
342341 print (f"🤖 Модель: { DEFAULT_MODEL } " )
343- print (f"🏷️ Project ID: { PROJECT_ID or 'не установлен' } " )
344342
345343 # Показываем, используются ли Foundation Models
346344 is_foundation_models = (
You can’t perform that action at this time.
0 commit comments