Skip to content

Commit

Permalink
Split chat and completion component (#70)
Browse files Browse the repository at this point in the history
* split chat and completion component

* add own namespaces in adapter packages

* fix qdrant dependencies, add ollama and chat examples

* moved adapters to own namespaces

* add experts example

* use new composer plugin to improve project structure

* add script to run examples and validate usage blocks
  • Loading branch information
wachterjohannes authored Jun 22, 2024
1 parent d09802c commit d77b2bc
Show file tree
Hide file tree
Showing 26 changed files with 569 additions and 503 deletions.
15 changes: 11 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
],
"require": {
"php": "^8.2",
"modelflow-ai/core": "^0.2",
"openai-php/client": "^0.8",
"symfony/http-client": "^6.4 || ^7.0",
"nyholm/psr7": "^1.8"
},
"require-dev": {
"modelflow-ai/chat": "^0.2",
"modelflow-ai/embeddings": "^0.2",
"modelflow-ai/image": "^0.2",
"modelflow-ai/prompt-template": "^0.2",
Expand All @@ -46,7 +46,8 @@
"jangregor/phpstan-prophecy": "^1.0",
"phpspec/prophecy-phpunit": "^2.1@stable",
"symfony/dotenv": "^7.1",
"symfony/console": "^7.1"
"symfony/console": "^7.1",
"asapo/remove-vendor-plugin": "^0.1"
},
"suggest": {
"modelflow-ai/embeddings": "To use the embeddings.",
Expand Down Expand Up @@ -80,15 +81,21 @@
"type": "path",
"url": "./../*",
"options": {
"symlink": true
"symlink": false
}
}
],
"minimum-stability": "dev",
"config": {
"allow-plugins": {
"phpstan/extension-installer": true,
"php-http/discovery": true
"php-http/discovery": true,
"asapo/remove-vendor-plugin": true
}
},
"extra": {
"remove-folders": [
"modelflow-ai/*/vendor"
]
}
}
Loading

0 comments on commit d77b2bc

Please sign in to comment.