-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from sgomez/workspaces
Create workspaces
- Loading branch information
Showing
64 changed files
with
2,538 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
This folder includes adapted examples from https://github.com/vercel/ai, which is licensed under the Apache License, Version 2.0. | ||
|
||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
You may obtain the original code at | ||
|
||
https://github.com/vercel/ai |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Basic Examples | ||
|
||
## Usage | ||
|
||
1. Run the following commands from the root directory of the repo: | ||
```sh | ||
pnpm install | ||
``` | ||
2. Run any example (from the `examples/ai-core` directory) with the following command: | ||
```sh | ||
src/path/to/example.ts | ||
``` | ||
3. You can specify the model with the `-m` flag: | ||
```sh | ||
src/path/to/example.ts -m llama3 | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "ollama-ai-provider-core-examples", | ||
"version": "0.0.0", | ||
"private": true, | ||
"scripts": {}, | ||
"dependencies": { | ||
"ai": "latest", | ||
"commander": "^12.0.0", | ||
"ollama-ai-provider": "workspace:latest", | ||
"zod": "3.22.4", | ||
"zod-to-json-schema": "3.22.4" | ||
}, | ||
"devDependencies": { | ||
"@types/json-schema": "^7.0.15", | ||
"@types/node": "20.11.20", | ||
"json-schema": "^0.4.0", | ||
"tsx": "4.7.1", | ||
"typescript": "5.1.3" | ||
} | ||
} |
Oops, something went wrong.