Code Monkey home page Code Monkey logo

openai-delphi's People

Contributors

fraurino avatar gidesa avatar wlandgraf avatar

Stargazers

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

Watchers

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

openai-delphi's Issues

OpenAI Oragnization Name

Thanks again for the nice library Wagner!

One question:

Config.AccessToken is the APIKEY

What about the Organization name? setting in OpenAI API?

I cannot find the property or token field to set.

Thanks!

I provided API key, but got error

I'm using Lazarus

response from OpenAi

[Content]
Request failed
status: 401
Response: {
    "error": {
        "message": "You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.",
        "type": "invalid_request_error",
        "param": null,
        "code": null
    }
}

api key provided using these :

Client := TOpenAIClient.Create;
Client.Config.AccessToken := GetEnvironmentVariable(apikey); 

error on lazarus

When I compile using Delphi, everything is right, it works perfectly.

But when compiled using Lazarus (Laz 2.2.5 FPC 3.2.2 x86_64), the following error occurs:

image

Any idea?

Rotas Fine Tunning foram alteradas, valide na documentação para ver se estou correto nas afirmações que postei abaixo

OpenAiClient.pas

// Request := CreateRequest('/fine-tunes', 'GET');
Request := CreateRequest('/fine_tuning/jobs', 'GET');

//Request := CreateRequest('/fine-tunes/{fine_tune_id}/cancel', 'POST');
Request := CreateRequest('/fine_tuning/jobs/{fine_tuning_job_id}/cancel', 'POST');

Essas foram as duas necessidades que tive e notei que mudaram, porem não testei as demais, estou dando uma olhada para
ver se encontro algo mais e volto a reportar.

Queria se possivel que montasse um demo :
1 - como enviar audios e obter a resposta.
2 - Como fazer treinamentos via Fine tunning e como usar o modelo treinado, pois quando cria m fine tunning ele cria other models, queria saber como usar esse other model treinado com base nas regras enviadas para esse novo modelo.
4 - como enviar imagens

parabens por ter compartilhado esse fonte, me ajudou e com certeza ajudou muitos.

concept of a session/conversation?

I have it working well, thank you for putting this together. I am trying to put together a series of questions that are linked to a single topic or set of data. It seems like each question is separate. Is there a way to continue with a conversation? This is how it works when using web chat. Then, let's say I also want to do the 'new chat' to clear it's memory, is there a way to do that?

Thanks.

To test, something really simple

I have three friends, moe, larry, and curly.
i have a wife named Mary
Who are my three friends?

Incredible Code... Possible Demo?

Absolutely incredible code! Would it be possible to add another demo that shows how to do the streaming? i.e. made text appear in "chunks" like done on ChatGPT website?
Thank you for sharing this code.

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.