Comments (3)
@Dragonchu Hello, I think the reason why v1/chat/completions
is automatically added is because the chatCompletionEntity,chatCompletionStream method in OpenAiApi.java automatically added uri as /v1/chat/completions
. I think it would be possible to overload the functions to receive additional uri. (ex:chatCompletionEntity(uri, ChatCompletionRequest)))
And I'd like to ask the maintainers if this idea is a good way or if it's okay for me to solve it.
from spring-ai.
Additionally, I think the modification for base-url
can be done by overloading the generator for OpenAiConnectionProperties
. Can I try this issue?
from spring-ai.
@devholic22 Indeed, it could be possible by overloading the call method. But wouldn't it be better to have it in the app config and have it as an attribute called chatCompletionUri
in the class OpenAiParentProperties
?
So this property class would have both the base url and the custom wanted uri.
from spring-ai.
Related Issues (20)
- Bedrock Titan Embeddings - Malformed input request / 2 validation errors HOT 1
- Generate complex Json schemas with BeanOutputConverter
- MilvusVectorStore need support milvus sdk 'withPartitionName' method when insert or delete
- VectorStoreChatMemoryAdvisor is not working correctly with PGvector
- Why is there no entry for webclient to set up http proxy? I don’t want to set up a proxy for the entire service. 😭 HOT 12
- AWS Bedrock models tools support HOT 2
- Feature Request: Support for Invoking HTTP-based APIs via OpenAPI Spec HOT 1
- Add support for the Amazon Bedrock Converse API HOT 5
- Add Support for get usage tokens HOT 2
- neo4j Vector store does not allow more than 2048 embedding dimensions HOT 1
- SpringAI does not follow the AWS SDK's default region resolution rules HOT 1
- AzureOpenAiChatModel choices is null
- Gemini model doesn't declare dependency on spring-ai-retry
- java.lang.RuntimeException: java.lang.IllegalArgumentException: argument type mismatch
- java.lang.RuntimeException: java.lang.IllegalArgumentException: argument type mismatch
- Get 'The engine PyTorch was not able to initialize' when call TransformersEmbeddingModel's embed method concurrently
- Introduce basic starter dependency for Hugging Face
- odd issue creating embeddings with Ollama HOT 1
- VertexAiGeminiChatModel does not support multiple Function Calls
- Exact similarity match with Redis Vector Store always retuning empty list
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-ai.