Skip to content

Commit

Permalink
MIT, better README
Browse files Browse the repository at this point in the history
  • Loading branch information
edspencer committed Aug 24, 2024
1 parent 17b80a7 commit b7c17d0
Show file tree
Hide file tree
Showing 8 changed files with 238 additions and 304 deletions.
5 changes: 5 additions & 0 deletions .changeset/real-tips-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"inform-ai": patch
---

Better README
5 changes: 5 additions & 0 deletions .changeset/sharp-lies-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"inform-ai": minor
---

Adopt MIT license
522 changes: 225 additions & 297 deletions README.md

Large diffs are not rendered by default.

Binary file added docs/current-state-example-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/current-state-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// jest.config.ts
import type { JestConfigWithTsJest } from "ts-jest";

const jestConfig: JestConfigWithTsJest = {
preset: "ts-jest",
testEnvironment: "jsdom",
transform: {
// "^.+\\.(t|j)sx?$": ["@swc/jest"],
},
moduleNameMapper: {
"^ai/rsc$": "<rootDir>/node_modules/ai/rsc/dist",
"^@/(.*)$": "<rootDir>/$1",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"url": "git+https://github.com/edspencer/inform-ai.git"
},
"author": "Ed Spencer",
"license": "ISC",
"license": "MIT",
"devDependencies": {
"@changesets/cli": "^2.27.7",
"@jest/globals": "^29.7.0",
Expand Down
4 changes: 2 additions & 2 deletions src/ui/ChatWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ export interface ChatWrapperProps {
*
* import { ChatWrapper } from "inform-ai";
* import { useActions, useUIState } from "ai/rsc";
* import { AIProvider } from "./AI";
*
* export function MyCustomChatWrapper() {
* const { submitUserMessage } = useActions();
* const [messages, setMessages] = useUIState<typeof AIProvider>();
* const [messages, setMessages] = useUIState();
*
* return (
* <ChatWrapper
Expand Down Expand Up @@ -62,6 +61,7 @@ export interface ChatWrapperProps {
*
* function submitUserMessage() {
* //your implementation to send message to the LLM via Vercel AI SDK
* //probably using the streamUI, streamText or similar functions
* }
*
* export const AIProvider = createAI<AIState, UIState>({
Expand Down

0 comments on commit b7c17d0

Please sign in to comment.