Skip to content

Commit

Permalink
Fix: streamlined the llm apis
Browse files Browse the repository at this point in the history
  • Loading branch information
dosco committed Sep 6, 2023
1 parent 5edd33c commit 0bbc8b0
Show file tree
Hide file tree
Showing 119 changed files with 2,967 additions and 4,204 deletions.
2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

46 changes: 23 additions & 23 deletions docs/classes/AIPrompt.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/AlephAlpha.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions docs/classes/Anthropic.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/classes/AssistantPrompt.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">AssistantPrompt</span></li></ul></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/dosco/llm-client/blob/0978b29/src/prompts/chats.ts#L8">prompts/chats.ts:8</a></li></ul></aside>
<li>Defined in <a href="https://github.com/dosco/llm-client/blob/7b0b2f4/src/prompts/chats.ts#L8">prompts/chats.ts:8</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand Down Expand Up @@ -63,14 +63,14 @@ <h5><code class="tsd-tag ts-flagOptional">Optional</code> context: <span class="
<h4 class="tsd-returns-title">Returns <a href="AssistantPrompt.html" class="tsd-signature-type" data-tsd-kind="Class">AssistantPrompt</a></h4><aside class="tsd-sources">
<p>Overrides <a href="AIPrompt.html">AIPrompt</a>.<a href="AIPrompt.html#constructor">constructor</a></p>
<ul>
<li>Defined in <a href="https://github.com/dosco/llm-client/blob/0978b29/src/prompts/chats.ts#L11">prompts/chats.ts:11</a></li></ul></aside></li></ul></section></section>
<li>Defined in <a href="https://github.com/dosco/llm-client/blob/7b0b2f4/src/prompts/chats.ts#L11">prompts/chats.ts:11</a></li></ul></aside></li></ul></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"><a id="context" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <code class="tsd-tag ts-flagOptional">Optional</code> <span>context</span><a href="#context" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature">context<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/dosco/llm-client/blob/0978b29/src/prompts/chats.ts#L9">prompts/chats.ts:9</a></li></ul></aside></section></section>
<li>Defined in <a href="https://github.com/dosco/llm-client/blob/7b0b2f4/src/prompts/chats.ts#L9">prompts/chats.ts:9</a></li></ul></aside></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="functionsSchema" class="tsd-anchor"></a>
Expand All @@ -81,7 +81,7 @@ <h3 class="tsd-anchor-link"><span>functions<wbr/>Schema</span><a href="#function
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
<p>Inherited from <a href="AIPrompt.html">AIPrompt</a>.<a href="AIPrompt.html#functionsSchema">functionsSchema</a></p>
<ul>
<li>Defined in <a href="https://github.com/dosco/llm-client/blob/0978b29/src/text/text.ts#L61">text/text.ts:61</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/dosco/llm-client/blob/7b0b2f4/src/text/text.ts#L61">text/text.ts:61</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="generate" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>generate</span><a href="#generate" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
Expand All @@ -99,7 +99,7 @@ <h5>options: <span class="tsd-signature-type">Readonly</span><span class="tsd-si
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">AITextResponse</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<p>Inherited from <a href="AIPrompt.html">AIPrompt</a>.<a href="AIPrompt.html#generate">generate</a></p>
<ul>
<li>Defined in <a href="https://github.com/dosco/llm-client/blob/0978b29/src/text/text.ts#L69">text/text.ts:69</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/dosco/llm-client/blob/7b0b2f4/src/text/text.ts#L69">text/text.ts:69</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="prompt" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>prompt</span><a href="#prompt" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
Expand All @@ -121,7 +121,7 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</s
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
<p>Overrides <a href="AIPrompt.html">AIPrompt</a>.<a href="AIPrompt.html#prompt">prompt</a></p>
<ul>
<li>Defined in <a href="https://github.com/dosco/llm-client/blob/0978b29/src/prompts/chats.ts#L20">prompts/chats.ts:20</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/dosco/llm-client/blob/7b0b2f4/src/prompts/chats.ts#L20">prompts/chats.ts:20</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setDebug" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>set<wbr/>Debug</span><a href="#setDebug" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
Expand All @@ -135,7 +135,7 @@ <h5>debug: <span class="tsd-signature-type">boolean</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
<p>Inherited from <a href="AIPrompt.html">AIPrompt</a>.<a href="AIPrompt.html#setDebug">setDebug</a></p>
<ul>
<li>Defined in <a href="https://github.com/dosco/llm-client/blob/0978b29/src/text/text.ts#L57">text/text.ts:57</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/dosco/llm-client/blob/7b0b2f4/src/text/text.ts#L57">text/text.ts:57</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setMaxSteps" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>set<wbr/>Max<wbr/>Steps</span><a href="#setMaxSteps" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
Expand All @@ -149,7 +149,7 @@ <h5>maxSteps: <span class="tsd-signature-type">number</span></h5></li></ul></div
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
<p>Inherited from <a href="AIPrompt.html">AIPrompt</a>.<a href="AIPrompt.html#setMaxSteps">setMaxSteps</a></p>
<ul>
<li>Defined in <a href="https://github.com/dosco/llm-client/blob/0978b29/src/text/text.ts#L53">text/text.ts:53</a></li></ul></aside></li></ul></section></section></div>
<li>Defined in <a href="https://github.com/dosco/llm-client/blob/7b0b2f4/src/text/text.ts#L53">text/text.ts:53</a></li></ul></aside></li></ul></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
Expand Down
Loading

0 comments on commit 0bbc8b0

Please sign in to comment.