News for hackers. Stuff that matters.
Re:Show HN: I built an OSS alternative to Azure OpenAI services by HellsMaddy on Monday December 11, 2023 @04:27PM (#38605742)
This reminds me of an idea I had for an OpenAI proxy that transparently handles batching of requests. The use case is that OpenAI has rate limits not only on tokens but also requests per minute. By batching multiple requests together you can avoid hitting the requests limit.

This isn’t really feasible to implement if your app runs on lambda or edge functions, you’d need a persistent server.

Here’s a diagram I drew of a simple approach that came to mind: https://gist.github.com/b0o/a73af0c1b63fccf3669fa4b00ac4be52

It would be awesome to see this functionality built into BricksLLM.

Re:Show HN: I built an OSS alternative to Azure OpenAI services by heyn05tradamu5 on Monday December 11, 2023 @04:52PM (#38606030)
They’ve recently added this functionality to AWS Bedrock thankfully. Doesn’t support OpenAI models, but does support Anthropic.

https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-be...

Re:Show HN: I built an OSS alternative to Azure OpenAI services by te_chris on Tuesday December 12, 2023 @02:02AM (#38610472)
If you can get Claude approved.
Re:Show HN: I built an OSS alternative to Azure OpenAI services by computerex on Monday December 11, 2023 @04:43PM (#38605933)
OpenAI API doesn't support batching afaik.
Re:Show HN: I built an OSS alternative to Azure OpenAI services by HellsMaddy on Monday December 11, 2023 @04:53PM (#38606040)
Re:Show HN: I built an OSS alternative to Azure OpenAI services by treprinum on Monday December 11, 2023 @04:55PM (#38606052)
Embeddings can be batched.
Re:Show HN: I built an OSS alternative to Azure OpenAI services by swyx on Monday December 11, 2023 @04:48PM (#38606000)
how exactly are you intending to batch different prompts together in the openai api? its not like they accept an array of parallel inputs