swarmauri / swarmauri-sdk

https://swarmauri.com
Apache License 2.0
11 stars 23 forks source link

[Feature Request]: Create a new LLM #383

Open DevDigiLance opened 1 week ago

DevDigiLance commented 1 week ago

Feature Name

Test file LLMs

Feature Description

create a new LLM like the ones appearing in the swarmauri sdk's standard/concrete/llms/ folder.

To do this, we need to do two things:

  1. we need to create a test file for it: example: tests/llms/OpenAIModel_test.py

  2. we need the actual component code: example: standard/llms/concrete/OpenAIModel.py


we use TDD. test driven development. which means, we start with the test file first, THEN we make the component.

In tdd, we create something that shows how we want the code to be able to behave... then we actually make code that passes those tests.

It will feel backwards at first, but soon you'll love it I'm sure


to get create started here... copy the OpenAI test and component files and adapt them to make a new component called:

standard/llms/concrete/OpenRouterModel.py

use the following documentation here to build the internal implementation logic for the model:

https://openrouter.ai/docs/quick-start


### Motivation

we use TDD. test driven development. which means, we start with the test file first, THEN we make the component. 

In tdd, we create something that shows how we want the code to be able to behave... then we actually make code that passes those tests.

### Potential Solutions

to get create started here... copy the OpenAI test and component files and adapt them to make a new component called:

standard/llms/concrete/OpenRouterModel.py

use the following documentation here to build the internal implementation logic for the model:

https://openrouter.ai/docs/quick-start

Additional Context (optional)

No response

Affected Areas

None

Priority

Low