Skip to content

hevayo/ballerina-openai-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Ballerina openai client

Usage

  • Build the client package and push to local repository

    $ cd openai
    $ bal pack
    $ bal push --repository local
    
  • Set the OpenAI key in the Config.toml

    $ cd sample
    $ echo "openAIKey = \"sk-xxxxxxxxxxxxxxxxxxxxxxxxxxx\"" > Config.toml
    
  • Run main with an argument

    sample$ bal run -- "What is Ballerina"
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published