Skip to content

Commit

Permalink
Merge pull request nnance#4 from lgrammel/main
Browse files Browse the repository at this point in the history
Move to new @ai-sdk/provider package
  • Loading branch information
nnance authored Apr 19, 2024
2 parents 0bfc988 + 2dbfe1e commit 33034c8
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 10 deletions.
38 changes: 32 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"author": "Nick Nance",
"license": "MIT",
"devDependencies": {
"@ai-sdk/provider": "^0.0.0",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.2",
"cmake-js": "^7.3.0",
Expand All @@ -30,7 +31,7 @@
"typescript": "^5.4.3"
},
"peerDependencies": {
"ai": "^3.0.16"
"ai": "^3.0.20"
},
"files": [
"dist",
Expand Down
2 changes: 1 addition & 1 deletion src/llamacpp-chat-language-model.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
LanguageModelV1CallOptions,
LanguageModelV1Prompt,
LanguageModelV1StreamPart,
} from "ai/spec";
} from "@ai-sdk/provider";
import {
LLamaCppAdapter,
LLamaCppEvaluateOptions,
Expand Down
2 changes: 1 addition & 1 deletion src/llamacpp-chat-language-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
LanguageModelV1TextPart,
LanguageModelV1ToolCallPart,
LanguageModelV1ToolResultPart,
} from "ai/spec";
} from "@ai-sdk/provider";
import { Message } from "ai";

import { experimental_buildLlama2Prompt } from "ai/prompts";
Expand Down
2 changes: 1 addition & 1 deletion src/llamacpp-completion-language-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
LanguageModelV1FunctionToolCall,
LanguageModelV1StreamPart,
LanguageModelV1FinishReason,
} from "ai/spec";
} from "@ai-sdk/provider";
import { LLamaCppAdapter } from "./llamacpp-adapter.js";

interface LLamaCppCompletionConfig {
Expand Down

0 comments on commit 33034c8

Please sign in to comment.