revelrylabs / prodops_ex

The Elixir SDK for ProdOps
MIT License
0 stars 0 forks source link

#13 Create Streaming #40

Closed jacksonoberkirch closed 6 months ago

jacksonoberkirch commented 6 months ago

What I'm doing:

What it looks like:

iex(1)> result = ProdopsEx.Artifact.stream_create_artifact(%{artifact_slug: "story", prompt_template_id: 4, project_id: 1, inputs: [%{name: "Input", value: "Value"}]})

iex(2)> Enum.to_list(result)
["", "Once", " in", " the", " land", " of", " Ful", "gor", "ia", ",", " there",
 " existed", " an", " invisible", " force", " known", " only", " as", " Value",
 ".", " Unlike", " the", " g", "listening", " gold", " or", " the", " shimmer",
 "ing", " silver", " that", " people", " ho", "arded", " with", " ferv", "or",
 ",", " Value", " was", " indef", "in", "able", ",", " am", "orph", "ous", ",",
 " and", " yet", ...]

What I'd like feedback on/What I'm still working on while this is WIP: