-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate fixie-hello-world into fixie-hello-world and @fixieai/sdk (#251
) - Split out the fastify server from the hello-world sample - Use new conversation contracts with Fixie service - Add JWT parsing to the fastify shim to extract agent ID - Change AI.JSX `<ConversationHistory>` component to be a simple extensibility point that the Fixie request wrapper injects the `<FixieConversation>` component into Subsequent changes will: - Plumb the auth token so that Fixie corpus queries can use it
- Loading branch information
1 parent
ad801e8
commit 348294e
Showing
21 changed files
with
554 additions
and
208 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
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
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { ChatCompletion, SystemMessage, UserMessage } from 'ai-jsx/core/completion'; | ||
import { ChatCompletion, SystemMessage, ConversationHistory } from 'ai-jsx/core/completion'; | ||
|
||
export default function HelloWorld({ message }: { message: string }) { | ||
export default function HelloWorld() { | ||
return ( | ||
<ChatCompletion temperature={1}> | ||
<SystemMessage>Respond to the user using some variant of the phrase "Hello World!". Be creative!</SystemMessage> | ||
<UserMessage>{message}</UserMessage> | ||
<SystemMessage>You are Clippy from Microsoft Office. Respond to the user accordingly.</SystemMessage> | ||
<ConversationHistory /> | ||
</ChatCompletion> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
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,55 @@ | ||
{ | ||
"name": "@fixieai/sdk", | ||
"version": "1.0.0", | ||
"license": "MIT", | ||
"repository": "fixie-ai/ai-jsx", | ||
"bugs": "https://github.com/fixie-ai/ai-jsx/issues", | ||
"homepage": "https://fixie.ai", | ||
"type": "module", | ||
"scripts": { | ||
"lint": "eslint . --max-warnings 0", | ||
"lint:fix": "eslint . --fix", | ||
"typecheck": "tsc -p tsconfig.json", | ||
"build": "yarn run typecheck", | ||
"prepack": "yarn build" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"main": "dist/index.js", | ||
"bin": { | ||
"fixie-serve-bin": "dist/fixie-serve-bin.js" | ||
}, | ||
"peerDependencies": { | ||
"ai-jsx": ">=0.12.0 <1.0.0" | ||
}, | ||
"dependencies": { | ||
"@opentelemetry/api": "^1.4.1", | ||
"@opentelemetry/api-logs": "^0.41.1", | ||
"@opentelemetry/exporter-logs-otlp-grpc": "^0.41.1", | ||
"@opentelemetry/exporter-trace-otlp-grpc": "^0.41.1", | ||
"@opentelemetry/instrumentation-fastify": "^0.32.0", | ||
"@opentelemetry/instrumentation-fetch": "^0.41.1", | ||
"@opentelemetry/instrumentation-http": "^0.41.2", | ||
"@opentelemetry/sdk-logs": "^0.41.1", | ||
"@opentelemetry/sdk-node": "^0.41.1", | ||
"dotenv": "^16.3.1", | ||
"fastify": "^4.20.0", | ||
"jose": "^4.14.4", | ||
"yargs": "^17.7.2" | ||
}, | ||
"devDependencies": { | ||
"@tsconfig/node18": "^2.0.1", | ||
"@types/lodash": "^4.14.195", | ||
"@types/node": "^20.3.1", | ||
"@types/prompt-sync": "^4.2.0", | ||
"@types/uuid": "^9.0.2", | ||
"@types/yargs": "^17.0.24", | ||
"@typescript-eslint/eslint-plugin": "^5.60.0", | ||
"@typescript-eslint/parser": "^5.60.0", | ||
"ai-jsx": ">=0.12.0 <1.0.0", | ||
"eslint": "^8.40.0", | ||
"eslint-config-nth": "^2.0.1", | ||
"typescript": "^5.1.3" | ||
} | ||
} |
Oops, something went wrong.
348294e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
ai-jsx-docs – ./packages/docs
ai-jsx-docs.vercel.app
ai-jsx-docs-git-main-fixie-ai.vercel.app
ai-jsx-docs-fixie-ai.vercel.app
docs.ai-jsx.com
348294e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
ai-jsx-nextjs-demo – ./packages/nextjs-demo
ai-jsx-nextjs-demo-fixie-ai.vercel.app
ai-jsx-nextjs-demo.vercel.app
ai-jsx-nextjs-demo-git-main-fixie-ai.vercel.app
348294e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
ai-jsx-tutorial-nextjs – ./packages/tutorial-nextjs
ai-jsx-tutorial-nextjs-git-main-fixie-ai.vercel.app
ai-jsx-tutorial-nextjs.vercel.app
ai-jsx-tutorial-nextjs-fixie-ai.vercel.app