-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QLLM SPLIT LOCAL TO REMOT MASTER BRANCH (#18)
* refactoring separation cli / providers * update * update * update * update * incomplete major refactoring * fix configuration * Fix * update * update * Feat/qllm split phase 2 (#11) * refactoring process... * refactoring process... * refactoring process... * refactoring process... --------- Co-authored-by: yatchiya <yarab@gmail.com> * push new features --------- Co-authored-by: Raphael MANSUY <raphael.mansuy.partner@decathlon.com> Co-authored-by: yatchiya <yarab@gmail.com>
- Loading branch information
1 parent
e910db5
commit 422835d
Showing
114 changed files
with
17,139 additions
and
5,523 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module.exports = { | ||
parser: '@typescript-eslint/parser', | ||
extends: [ | ||
'plugin:@typescript-eslint/recommended', | ||
'prettier/@typescript-eslint', | ||
'plugin:prettier/recommended', | ||
], | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
}, | ||
rules: { | ||
// Add any custom rules here | ||
}, | ||
}; |
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,9 +1,12 @@ | ||
node_modules/ | ||
*/node_modules/ | ||
*/*/node_modules/ | ||
dist/ | ||
.env | ||
*.log | ||
.DS_Store | ||
tasks/ | ||
package-lock.json | ||
.qllmrc.yaml | ||
.qllmrc.yaml* | ||
.qllmrc.yaml* | ||
dist |
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,4 @@ | ||
node_modules | ||
dist | ||
build | ||
coverage |
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,7 @@ | ||
{ | ||
"semi": true, | ||
"trailingComma": "all", | ||
"singleQuote": true, | ||
"printWidth": 100, | ||
"tabWidth": 2 | ||
} |
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,32 @@ | ||
**QLLM API Documentation** • **Docs** | ||
|
||
*** | ||
|
||
# QLLM API Documentation | ||
|
||
## Classes | ||
|
||
- [ConfigurationManager](classes/ConfigurationManager.md) | ||
- [ProviderFactory](classes/ProviderFactory.md) | ||
|
||
## Interfaces | ||
|
||
- [LLMProviderOptions](interfaces/LLMProviderOptions.md) | ||
- [LLMResponse](interfaces/LLMResponse.md) | ||
- [Message](interfaces/Message.md) | ||
- [ProviderConfig](interfaces/ProviderConfig.md) | ||
|
||
## Type Aliases | ||
|
||
- [MessageRole](type-aliases/MessageRole.md) | ||
- [OutputFormat](type-aliases/OutputFormat.md) | ||
|
||
## Variables | ||
|
||
- [configManager](variables/configManager.md) | ||
|
||
## Functions | ||
|
||
- [getAllProviders](functions/getAllProviders.md) | ||
- [getModelsForProvider](functions/getModelsForProvider.md) | ||
- [getProviderConfig](functions/getProviderConfig.md) |
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,107 @@ | ||
[**QLLM API Documentation**](../README.md) • **Docs** | ||
|
||
*** | ||
|
||
[QLLM API Documentation](../README.md) / ConfigurationManager | ||
|
||
# Class: ConfigurationManager | ||
|
||
## Extends | ||
|
||
- `EventEmitter` | ||
|
||
## Methods | ||
|
||
### getConfig() | ||
|
||
> **getConfig**(): `AppConfig` | ||
#### Returns | ||
|
||
`AppConfig` | ||
|
||
#### Defined in | ||
|
||
[config/configuration\_manager.ts:41](https://github.com/YatchiYa/qllm/blob/c17ead74a8e7150bea6cf408fa2b104235926e7e/packages/qllm-lib/src/config/configuration_manager.ts#L41) | ||
|
||
*** | ||
|
||
### loadConfig() | ||
|
||
> **loadConfig**(`configPath`?): `Promise`\<`void`\> | ||
#### Parameters | ||
|
||
• **configPath?**: `string` | ||
|
||
#### Returns | ||
|
||
`Promise`\<`void`\> | ||
|
||
#### Defined in | ||
|
||
[config/configuration\_manager.ts:28](https://github.com/YatchiYa/qllm/blob/c17ead74a8e7150bea6cf408fa2b104235926e7e/packages/qllm-lib/src/config/configuration_manager.ts#L28) | ||
|
||
*** | ||
|
||
### updateAndSaveConfig() | ||
|
||
> **updateAndSaveConfig**(`updates`): `Promise`\<`void`\> | ||
#### Parameters | ||
|
||
• **updates**: `Partial`\<`AppConfig`\> | ||
|
||
#### Returns | ||
|
||
`Promise`\<`void`\> | ||
|
||
#### Defined in | ||
|
||
[config/configuration\_manager.ts:45](https://github.com/YatchiYa/qllm/blob/c17ead74a8e7150bea6cf408fa2b104235926e7e/packages/qllm-lib/src/config/configuration_manager.ts#L45) | ||
|
||
*** | ||
|
||
### updateConfig() | ||
|
||
> **updateConfig**(`updates`): `void` | ||
#### Parameters | ||
|
||
• **updates**: `Partial`\<`AppConfig`\> | ||
|
||
#### Returns | ||
|
||
`void` | ||
|
||
#### Defined in | ||
|
||
[config/configuration\_manager.ts:50](https://github.com/YatchiYa/qllm/blob/c17ead74a8e7150bea6cf408fa2b104235926e7e/packages/qllm-lib/src/config/configuration_manager.ts#L50) | ||
|
||
*** | ||
|
||
### validateConfig() | ||
|
||
> **validateConfig**(): `boolean` | ||
#### Returns | ||
|
||
`boolean` | ||
|
||
#### Defined in | ||
|
||
[config/configuration\_manager.ts:71](https://github.com/YatchiYa/qllm/blob/c17ead74a8e7150bea6cf408fa2b104235926e7e/packages/qllm-lib/src/config/configuration_manager.ts#L71) | ||
|
||
*** | ||
|
||
### getInstance() | ||
|
||
> `static` **getInstance**(): [`ConfigurationManager`](ConfigurationManager.md) | ||
#### Returns | ||
|
||
[`ConfigurationManager`](ConfigurationManager.md) | ||
|
||
#### Defined in | ||
|
||
[config/configuration\_manager.ts:21](https://github.com/YatchiYa/qllm/blob/c17ead74a8e7150bea6cf408fa2b104235926e7e/packages/qllm-lib/src/config/configuration_manager.ts#L21) |
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 @@ | ||
[**QLLM API Documentation**](../README.md) • **Docs** | ||
|
||
*** | ||
|
||
[QLLM API Documentation](../README.md) / ProviderFactory | ||
|
||
# Class: ProviderFactory | ||
|
||
## Constructors | ||
|
||
### new ProviderFactory() | ||
|
||
> **new ProviderFactory**(): [`ProviderFactory`](ProviderFactory.md) | ||
#### Returns | ||
|
||
[`ProviderFactory`](ProviderFactory.md) | ||
|
||
## Methods | ||
|
||
### getProvider() | ||
|
||
> `static` **getProvider**(`providerName`): `Promise`\<`LLMProvider`\> | ||
#### Parameters | ||
|
||
• **providerName**: `ProviderName` | ||
|
||
#### Returns | ||
|
||
`Promise`\<`LLMProvider`\> | ||
|
||
#### Defined in | ||
|
||
[core/providers/provider\_factory.ts:14](https://github.com/YatchiYa/qllm/blob/c17ead74a8e7150bea6cf408fa2b104235926e7e/packages/qllm-lib/src/core/providers/provider_factory.ts#L14) | ||
|
||
*** | ||
|
||
### registerProviderPlugin() | ||
|
||
> `static` **registerProviderPlugin**(`name`, `initFunction`): `void` | ||
#### Parameters | ||
|
||
• **name**: `string` | ||
|
||
• **initFunction** | ||
|
||
#### Returns | ||
|
||
`void` | ||
|
||
#### Defined in | ||
|
||
[core/providers/provider\_factory.ts:38](https://github.com/YatchiYa/qllm/blob/c17ead74a8e7150bea6cf408fa2b104235926e7e/packages/qllm-lib/src/core/providers/provider_factory.ts#L38) |
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,17 @@ | ||
[**QLLM API Documentation**](../README.md) • **Docs** | ||
|
||
*** | ||
|
||
[QLLM API Documentation](../README.md) / getAllProviders | ||
|
||
# Function: getAllProviders() | ||
|
||
> **getAllProviders**(): `ProviderName`[] | ||
## Returns | ||
|
||
`ProviderName`[] | ||
|
||
## Defined in | ||
|
||
[config/provider\_config.ts:79](https://github.com/YatchiYa/qllm/blob/c17ead74a8e7150bea6cf408fa2b104235926e7e/packages/qllm-lib/src/config/provider_config.ts#L79) |
Oops, something went wrong.