Azure-Samples / acme-fitness-store

Sample - how to deploy Spring Boot apps to Azure?
https://docs.microsoft.com/en-us/azure/spring-cloud/overview
MIT License
84 stars 157 forks source link

Correct command to specify the openai model #174

Closed guitarsheng closed 1 year ago

guitarsheng commented 1 year ago

The changed command in this PR will use default ai deployment name (gpt-35-turbo-16k), If customer changed name ,like what I did, they will get below deployment cannot be found issue when trying to start conversation with ai on page.

    az spring app deploy --name ${AI_APP} \
        --source-path apps/acme-assist \
        --build-env BP_JVM_VERSION=17 \
        --env \
            SPRING_AI_AZURE_OPENAI_ENDPOINT=${AZURE_OPENAI_ENDPOINT} \
            SPRING_AI_AZURE_OPENAI_APIKEY=${AZURE_OPENAI_APIKEY} \
            SPRING_AI_AZURE_OPENAI_MODEL=${AZURE_OPENAI_CHATDEPLOYMENTID}