Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(grpc): backend SPI pluggable in embedding mode #1621

Merged
merged 7 commits into from
Jan 23, 2024

Conversation

coyzeng
Copy link
Contributor

@coyzeng coyzeng commented Jan 21, 2024

Description

Make Backend SPI pluggable in embedding mode. Like:

package grpc

import "github.com/go-skynet/LocalAI/pkg/grpc"

type LLM grpc.LLM

func Provide(addr string, llm LLM) {
	grpc.Provide(addr, llm)
}

func main() {
       ...
       options.WithExternalBackend("llama2" addr)
       app, err := api.App(options...)
       ...
}

This PR fixes #

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

Copy link

netlify bot commented Jan 21, 2024

Deploy Preview for localai canceled.

Name Link
🔨 Latest commit 12b718f
🔍 Latest deploy log https://app.netlify.com/sites/localai/deploys/65acc650f8d3390008300f63

@mudler mudler changed the title Backend SPI pluggable in embedding mode refactoring: backend SPI pluggable in embedding mode Jan 21, 2024
@mudler mudler changed the title refactoring: backend SPI pluggable in embedding mode feat(grpc): backend SPI pluggable in embedding mode Jan 21, 2024
@mudler mudler added the enhancement New feature or request label Jan 23, 2024
@mudler mudler merged commit d5d82ba into mudler:master Jan 23, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants