Open codefromthecrypt opened 3 months ago
for test, I think that use testcontainer with ollama, but I need try it.
yep you can use testcontainers or use a system managed one. If you are using small models the perf hit of running via containers may not be a big deal.
@devalexandre there is an Ollama module for Go: https://golang.testcontainers.org/modules/ollama/ 😉
Ollama has some support for openai emulation and could be a nice way to support more tests without requiring an API key or a public endpoint. This might be a nice way to extend coverage of the openai, which could also run relevant versions of the tests also in the ollama llm package. What do you think?
e.g. Some test configuration could work when
OPENAI_API_KEY
is not set, butOLLAMA_TEST_MODEL
is.