Giter VIP home page Giter VIP logo

llm-client's People

Contributors

boswelja avatar carlrobert-l avatar carlrobertoh avatar dependabot[bot] avatar melan avatar moritzfl avatar philkes avatar plinkr avatar reneleonhardt avatar renjfk avatar siilats avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

llm-client's Issues

Error on receiving meta information from model

https://github.com/carlrobertoh/LLM-Client/blob/9e6fe09a719a42744a9c8e574180615aa624d4df/src/main/java/ee/carlrobert/llm/client/openai/completion/OpenAIChatCompletionEventSourceListener.java#L19

SSE can come with meta information, which has empty choices array. E.g.:
data: {"id":"","object":"","created":0,"model":"","prompt_filter_results":[{"prompt_index":0,"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}}}],"choices":[]}

Completion (singular) vs Completions (plural) cause invalid endpoint on LM Studio

Hello,

I am wondering if the following code would not be the cause of my issue when trying to use CodeGPT Remote server (localhost) with LM Studio, which give me the following error (last line) :

return buildHttpRequest(request, "/completion");

[2024-03-29 10:12:29.205] [INFO] [LM STUDIO SERVER] Verbose server logs are ENABLED
[2024-03-29 10:12:29.208] [INFO] [LM STUDIO SERVER] Success! HTTP server listening on port 1234
[2024-03-29 10:12:29.208] [INFO] [LM STUDIO SERVER] Supported endpoints:
[2024-03-29 10:12:29.208] [INFO] [LM STUDIO SERVER] -> GET http://localhost:1234/v1/models
[2024-03-29 10:12:29.209] [INFO] [LM STUDIO SERVER] -> POST http://localhost:1234/v1/chat/completions
[2024-03-29 10:12:29.209] [INFO] [LM STUDIO SERVER] -> POST http://localhost:1234/v1/completions

[2024-03-29 10:12:46.517] [ERROR] Unexpected endpoint or method. (POST /v1/completion). Returning 200 anyway

The other API does use completions (plural), so I am wondering with which server completion (singular) is used ?

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.