How to configure custom openai compatible LLM #830
-
hello everyone, |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments 6 replies
-
Which LLM are you trying to add. Please share more details. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
are you using spring-ai-vertex-ai-gemini and spring-ai-mistral-ai for integration? |
Beta Was this translation helpful? Give feedback.
-
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: [] |
Beta Was this translation helpful? Give feedback.
-
how are you running: shell? please share log if you have it. |
Beta Was this translation helpful? Give feedback.
-
@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. |
Beta Was this translation helpful? Give feedback.
-
please share complete log ( you can sanitize sensitive information if there is any ). Tnx! |
Beta Was this translation helpful? Give feedback.
-
attach as file. |
Beta Was this translation helpful? Give feedback.
-
@alexheifetz i edited my last message with the attached log.txt file |
Beta Was this translation helpful? Give feedback.
-
@alexheifetz i debug the request to LLM but i did not find the solution:
|
Beta Was this translation helpful? Give feedback.
-
@alexheifetz i find the issue. the maxTokens should be less than 65537. But in my test it was 2000000. |
Beta Was this translation helpful? Give feedback.
-
have you looked at https://github.com/embabel/embabel-agent-examples |
Beta Was this translation helpful? Give feedback.
@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