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

New Feature: Add SambaNova as new AI connector #10338

Open
snova-rodrigom opened this issue Jan 29, 2025 · 3 comments
Open

New Feature: Add SambaNova as new AI connector #10338

snova-rodrigom opened this issue Jan 29, 2025 · 3 comments
Assignees

Comments

@snova-rodrigom
Copy link


Add SambaNova as new AI connector

It would be interesting to support SambaNova models in Semantic Kernel. Models there are very fast and precise.

I'd like to collaborate on adding SambaNova models to Semantic Kernel as new AI connectors. Do you have any docs related to how can someone help on adding new connectors? Thanks.

@markwallace-microsoft
Copy link
Member

Hi @snova-rodrigom

I took a look at the SambaNova developer documentation and here is their Python example:

import os
import openai

client = openai.OpenAI(
    api_key=os.environ.get("SAMBANOVA_API_KEY"),
    base_url="https://api.sambanova.ai/v1",
)

response = client.chat.completions.create(
    model='Meta-Llama-3.1-8B-Instruct',
    messages=[{"role":"system","content":"You are a helpful assistant"},{"role":"user","content":"Hello"}],
    temperature =  0.1,
    top_p = 0.1
)

print(response.choices[0].message.content)

This uses the OpenAI client library (which also exists for .Net) so there is no need to create dedicated connector for this service.

@snova-rodrigom
Copy link
Author

hey @markwallace-microsoft thank for your quick response. I work for SambaNova and I was just asking if adding a new connector would be the best way since I also see other LLM vendors there. I've already built an example using Semantic kernel and OpenAI connector pointing to our endpoints, and it's working great. If the latter is the approach we should take that's fine.

Let me know if you have any additional thoughts. Thanks!

@markwallace-microsoft
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants