GithubHelp home page GithubHelp logo

Add OpenAI provider about twinny HOT 7 CLOSED

JamesClarke7283 avatar JamesClarke7283 commented on September 25, 2024 1
Add OpenAI provider

from twinny.

Comments (7)

rjmacarthy avatar rjmacarthy commented on September 25, 2024

Hello, you can use OpenAI by using the LiteLLM provider proxy.

from twinny.

walkandre avatar walkandre commented on September 25, 2024

Just add a new provider with the settings:
image

from twinny.

JamesClarke7283 avatar JamesClarke7283 commented on September 25, 2024

Oh, thanks, i will keep that in mind.
I did not see OpenAI anywhere in the docs, so thats why i could not find out. But thanks/

from twinny.

bareblackfoot avatar bareblackfoot commented on September 25, 2024

@walkandre where is this setting in the vscode?

from twinny.

rjmacarthy avatar rjmacarthy commented on September 25, 2024

@walkandre where is this setting in the vscode?

@bareblackfoot

You should click the plug πŸ”Œ icon at the top. You should also install a local proxy for OpenAI such as LiteLLM or similar.

from twinny.

bareblackfoot avatar bareblackfoot commented on September 25, 2024

@rjmacarthy
Thanks for your fast response! I found the button and it worked well. The chat model works fine. However, the gpt3.5-turbo-instruct model for FIM generates <PRE> and <MID> tokens. Do you know how can i fix it?

Providers
Label*: OpenAI FIM
Type*: fim
Fim Template*: automatic
Provider*: litellm
Protocol*: http
Model name*: gpt-3.5-turbo-instruct
Hostname*: 0.0.0.0
Port*: 34162
API path*: /chat/completions

from twinny.

rjmacarthy avatar rjmacarthy commented on September 25, 2024

@rjmacarthy Thanks for your fast response! I found the button and it worked well. The chat model works fine. However, the gpt3.5-turbo-instruct model for FIM generates

 and  tokens. Do you know how can i fix it?

Providers
Label*: OpenAI FIM
Type*: fim
Fim Template*: automatic
Provider*: litellm
Protocol*: http
Model name*: gpt-3.5-turbo-instruct
Hostname*: 0.0.0.0
Port*: 34162
API path*: /chat/completions

Hey I'm not sure about FIM with OpenAI API...I saw some legacy stuff before but never tested it. You could try a custom FIM template or explore the API docs. Please let me know how you get on.

from twinny.

Related Issues (20)

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.