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

Support for Groq #580

Open
avcode-exe opened this issue May 4, 2024 · 7 comments
Open

Support for Groq #580

avcode-exe opened this issue May 4, 2024 · 7 comments

Comments

@avcode-exe
Copy link

avcode-exe commented May 4, 2024

Any plans on integrating Groq? It is very fast and can save a lot of time when comparing with other options.
Groq link: https://console.groq.com/docs/quickstart

@brianpetro
Copy link
Owner

@avcode-exe I have wanted to, it's very impressive.

It's just a hard balance between this sort of marginal improvement and shipping new features that I think could be 10X improvements.

That's why I made contributing adapters for these additional services as easy as possible, see brianpetro/jsbrains#1 (comment) for some details.

I'd like to say I'll get to it myself eventually, but it would of course be much faster if someone could contribute the adapter.

Thanks for participating in the Smart Connections community
😊🌴

@seanrose
Copy link

seanrose commented May 4, 2024

It looks like Groq has an OpenAI endpoint: https://console.groq.com/docs/openai

However, when I try it with the Custom API (OpenAl format) option, Smart Connections throws an invalid API key error. Am I doing something wrong, or is this expected?

2024-05-04 at 10 50 39@2x

@brianpetro
Copy link
Owner

@seanrose it's probably that the API key is handled different, even if the rest of the API format is the same.

It might be possible to already override this via the platforms.json config, but I'll have to check it out.

@OnfrICiA
Copy link

OnfrICiA commented May 5, 2024

@seanrose
I've just tested & got it to work - I believe the "path" needs to be:
/openai/v1/chat/completions

e.g.
image

@linmaobang
Copy link

@seanrose I've just tested & got it to work - I believe the "path" needs to be:我刚刚测试并让它工作 - 我相信“路径”需要: /openai/v1/chat/completions

e.g. 例如: image

It doesn't work either.

@OnfrICiA
Copy link

Definitely working for me @linmaobang .
Version: 2.1.63

Confirming settings:
Model Platform = Custom API (OpenAl format)
Model Name = llama3-70b-8192
Protocol = https
Hostname = api.groq.com
Path = /openai/v1/chat/completions
Streaming = OFF
Max input tokens = 8192
API Key = [starts with gsk...]

Here's my console:
image

What does your console say?

@linmaobang
Copy link

Definitely working for me @linmaobang .绝对为我工作. Version: 2.1.63 版本: 2.1.63

Confirming settings: 确认设置: Model Platform = Custom API (OpenAl format)模型平台 = 自定义 API(OpenAl 格式) Model Name = llama3-70b-8192型号名称 = llama3-70b-8192 Protocol = https 协议 = https Hostname = api.groq.com 主机名 = api.groq.com Path = /openai/v1/chat/completions路径 = /openai/v1/chat/completions Streaming = OFF 流 = 关闭 Max input tokens = 8192最大输入令牌数 = 8192 API Key = [starts with gsk...]API 密钥 = [以 gsk 开头...]

Here's my console: 这是我的控制台: image

What does your console say?你的控制台怎么说?

This is so cool!Successful, after restarting Obsidian.thanks a lot!

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

5 participants