Skip to content

Commit

Permalink
Add Video to Cookbook README (lastmile-ai#241)
Browse files Browse the repository at this point in the history
Add Video to Cookbook README
  • Loading branch information
rholinshead authored Nov 16, 2023
2 parents a79162d + 0a01073 commit 9594e9a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 6 additions & 0 deletions cookbooks/llama/typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ Run with
```
npx ts-node ask-llama.ts
```

<p align="center">
<video controls height="480" width="800">
<source src="https://github.com/lastmile-ai/aiconfig/assets/5060851/f2ecf6ce-7601-469c-aea1-5c0f776d7b73"/>
</video>
</p>
8 changes: 3 additions & 5 deletions cookbooks/llama/typescript/ask-llama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@ async function main() {
const options = { stream: true, callbacks };

await config.run("prompt7b", undefined, options);
await config.run("prompt7b_chat", options);
await config.run("prompt13b", options);

const codeResponse = await config.run("prompt13b_code");
console.log(codeResponse);
await config.run("prompt7b_chat", undefined, options);
await config.run("prompt13b", undefined, options);
await config.run("prompt13b_code", undefined, options);
}

main();

0 comments on commit 9594e9a

Please sign in to comment.