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

How to intergate with self model,such as tencent hunyuan, ailibaba qianwen。 #855

Closed
Rainmen-xia opened this issue Nov 13, 2024 · 12 comments

Comments

@Rainmen-xia
Copy link

How to intergate with self model,such as tencent hunyuan, qianwen。

@pelikhan
Copy link
Member

We don't support those yet. Do you know if they have an OpenAI compatible api?

@Rainmen-xia
Copy link
Author

yes。

@pelikhan
Copy link
Member

@Rainmen-xia #888

@pelikhan
Copy link
Member

Alibaba was added.

@anrgct
Copy link

anrgct commented Dec 10, 2024

You can call it using OpenAI-compatible endpoints. If you want to be compatible with function calls, you need to modify the code or use fallback tools.

@pelikhan
Copy link
Member

@anrgct are these mods for alibaba? I could enable fallback-tools automatically for those?

@anrgct
Copy link

anrgct commented Dec 11, 2024

Are these mods for Alibaba? Well, that's just my hack code because it's not fully compatible with the OpenAI format's function call modifications.
I could enable fallback-tools automatically for those? Maybe yes? I found that most models' function call capabilities are quite poor, but using fallback-tools works very well, like qwen2.5-coder-32b.

@pelikhan
Copy link
Member

Yes we can definitely enable fallback on those.

@pelikhan
Copy link
Member

Fix in 1.84.1

@yaonan
Copy link

yaonan commented Dec 18, 2024

The usage of Alibaba Cloud API KEY in the getting-started/configuration document is inaccurate.

The value of the environment variable ALIBABA_API_KEY should use the Bearer sk-... format instead of sk_..., otherwise, the following error will occur

genaiscript: error
LLM error (401): You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY).

@pelikhan
Copy link
Member

Thanks for pointing this out. Fix coming.

@pelikhan
Copy link
Member

fixed in 1.86.2

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

4 participants