Skip to content

StanleyWang567/trialAIproject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample JavaFX application using Proxy API

To setup the API to access Chat Completions and TTS

  • add in the root of the project (i.e., the same level where pom.xml is located) a file named apiproxy.config

  • put inside the credentials that you received from no-reply@digitaledu.ac.nz (put the quotes "")

    email: "UPI@aucklanduni.ac.nz"
    apiKey: "YOUR_KEY"
    

    These are your credentials to invoke the APIs.

    The token credits are charged as follows:

    • 1 token credit per 1 character for Google "Standard" Text-to-Speech.
    • 4 token credit per 1 character for Google "WaveNet" and "Neural2" Text-to-Speech.
    • 1 token credit per 1 character for OpenAI Text-to-Text.
    • 1 token credit per 1 token for OpenAI Chat Completions (as determined by OpenAI, charging both input and output tokens).

To setup codestyle's API

  • add in the root of the project (i.e., the same level where pom.xml is located) a file named codestyle.config

  • put inside the credentials that you received from gradestyle@digitaledu.ac.nz (put the quotes "")

    email: "UPI@aucklanduni.ac.nz"
    accessToken: "YOUR_KEY"
    

these are your credentials to invoke gradestyle

To run the game

./mvnw clean javafx:run

To debug the game

./mvnw clean javafx:run@debug then in VS Code "Run & Debug", then run "Debug JavaFX"

To run codestyle

./mvnw clean compile exec:java@style

About

UOA software engineer 2nd year trial AI project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors