Skip to content

feat: add streaming support and new GPT-Image models for OpenAI #2831

feat: add streaming support and new GPT-Image models for OpenAI

feat: add streaming support and new GPT-Image models for OpenAI #2831

Workflow file for this run

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: Build spring-ai-openai module
run: |
./mvnw clean install -pl models/spring-ai-openai -DskipTests
- 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=OpenAiImageModelIT,OpenAiImageModelNoOpApiKeysIT,OpenAiImageModelObservationIT,OpenAiImageModelStreamingIT,OpenAiImageModelWithImageResponseMetadataTests,OpenAiImageApiBuilderTests,OpenAiImageApiIT,OpenAiImageApiStreamingIT verify
- name: Run OpenAI Image AutoConfiguration tests
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
./mvnw -pl auto-configurations/models/spring-ai-autoconfigure-model-openai -Pintegration-tests -Dit.test=OpenAiImageAutoConfigurationIT verify
- name: Run OpenAI Image Properties tests
run: |
./mvnw test -pl auto-configurations/models/spring-ai-autoconfigure-model-openai -Dtest=OpenAiPropertiesTests#imageOptionsTest,OpenAiPropertiesTests#imageGptImageOptionsTest