Repository navigation
How to configure custom openai compatible LLM #830
|
hello everyone, |
Replies: 13 comments 12 replies
|
Which LLM are you trying to add. Please share more details. |
|
sample code on how OpenAI models are currently integrated with the embabel-agent framework: We are in the process of modularizing LLM(s) currently part of embabel-agent-api into dedicated Spring Boot Starters. Reference code will be available in the few days. |
|
are you using spring-ai-vertex-ai-gemini and spring-ai-mistral-ai for integration? |
|
from @mekkiamiri <@1278523834307317833> this is the applicationlyml and the configuration java class: public CustomOpenAiModels(@value("${embabel.custom-llm.base-url}") String baseUrl, } but i have the same error Default LLM 'gpt-4.1-mini' not found in available models: [] |
|
how are you running: shell? please share log if you have it. |
|
@alexheifetz i am sorry to reopen the discussion again: when i run the application and test with : x " tell story about car " for example, i get error : i did not find how to debug this issue. It seems that connection error when call LLM. |
|
please share complete log ( you can sanitize sensitive information if there is any ). Tnx! |
|
attach as file. |
|
@alexheifetz i edited my last message with the attached log.txt file |
|
@alexheifetz i debug the request to LLM but i did not find the solution:
|
|
@alexheifetz i find the issue. the maxTokens should be less than 65537. But in my test it was 2000000. |
|
have you looked at https://github.com/embabel/embabel-agent-examples |
|
@mekkiamiri - could you please update? Are you good with solutions? Thank you |
@alexheifetz my code you have shared works. it was an issue with my IDE.
i add that i followed the document https://docs.embabel.com/embabel-agent/guide/0.1.3-SNAPSHOT/index.html#reference.customizing
thank you and thanks to for help