Skip to content

ServiceNow flow action and subflow that can be used to test together.ai models.

License

Notifications You must be signed in to change notification settings

kylburns89/sn-togetherai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sn-togetherai

ServiceNow flow action and subflow that can be used to test together.ai models.

Together AI - Run AI with an API

  1. https://together.ai
  2. Sign in with Github
  3. Get your API key - https://api.together.xyz/settings/api-keys

Together.ai provides $5.00 worth of free credits for each account, and I've found with their optimizations discussed here, this is a decent amount of credits to get started with.

ServiceNow

  1. Import from source control in Studio.
  2. Open Together.ai app in Studio and select the system property.
  3. Put in your Together AI API key and save it.
  4. Open the subflow and click test.
  5. Enter a model and prompt. Note: The list of models can be found at https://api.together.xyz/models and you will need to enter the full model string including author and model name. (The default in subflow is meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo)

Note: Embedding and Image generation model types are currently not supported. Chat models are supported by default. If you need to test a language model, please update the subflow's resource path input to '/v1/completions'

image

  1. Have fun 😁!

Usecase

Since ServiceNow's Now Assist product is unavailable in PDIs, this allows for testing of GenAI responses using together.ai's library of serverless endpoint models. The subflow could even be modified and utilized in a production Flow if together.ai is allowed in your organization.

Future plans

  • Ability to support image generation / storage of the returned image in ServiceNow.
  • TBD

About

ServiceNow flow action and subflow that can be used to test together.ai models.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published