FriendliAI · Arazzo Workflow

FriendliAI deploy a Dedicated Endpoint and infer

Version 1.0.0

Create a Dedicated Endpoint, wait for it to be ready, then run a chat completion.

1 workflow 1 source API 1 provider
View Spec View on GitHub CompanyInfrastructureArtificial IntelligenceMachine LearningLLMInferenceGenerative AIGPUOpenAI CompatibleArazzoWorkflows

Provider

friendliai

Workflows

deploy-and-infer
Create a Dedicated Endpoint, poll status, then send inference to it.
3 steps inputs: model, prompt, token
1
createEndpoint
dedicatedCreateEndpoint
2
checkStatus
dedicatedGetEndpointStatus
3
infer
dedicatedChatComplete

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: FriendliAI deploy a Dedicated Endpoint and infer
  version: 1.0.0
  summary: Create a Dedicated Endpoint, wait for it to be ready, then run a chat completion.
sourceDescriptions:
  - name: friendli
    url: ../openapi/friendliai-openapi-original.yml
    type: openapi
workflows:
  - workflowId: deploy-and-infer
    summary: Create a Dedicated Endpoint, poll status, then send inference to it.
    inputs:
      type: object
      properties:
        token:
          type: string
        model:
          type: string
        prompt:
          type: string
    steps:
      - stepId: createEndpoint
        operationId: dedicatedCreateEndpoint
        outputs:
          endpointId: $response.body#/id
      - stepId: checkStatus
        operationId: dedicatedGetEndpointStatus
        parameters:
          - name: endpoint_id
            in: path
            value: $steps.createEndpoint.outputs.endpointId
      - stepId: infer
        operationId: dedicatedChatComplete
        requestBody:
          contentType: application/json
          payload:
            model: $inputs.model
            messages:
              - role: user
                content: $inputs.prompt
        outputs:
          content: $response.body