feat: add streaming support and new GPT-Image models for OpenAI #2722
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Check | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| name: Build branch | |
| runs-on: ubuntu-latest | |
| if: ${{ github.repository_owner == 'spring-projects' }} | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Build spring-ai-model module | |
| run: | | |
| ./mvnw clean install -pl spring-ai-model -DskipTests | |
| - name: Run OpenAI Image API integration tests | |
| env: | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| run: | | |
| ./mvnw -pl models/spring-ai-openai -Pintegration-tests -Dit.test=OpenAiImageApiIT,OpenAiImageApiStreamingIT verify | |
| - name: Run OpenAI Image Model integration tests | |
| env: | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| run: | | |
| ./mvnw -pl models/spring-ai-openai -Pintegration-tests -Dit.test=OpenAiImageModelObservationIT,OpenAiImageModelStreamingIT verify |