Giter Site home page Giter Site logo

Comments (8)

ppipada avatar ppipada commented on July 20, 2024

Hi,

Have some bandwidth issue since quite some time, but given that this would be a easy improvement, I will try and look into it in a few days. Thanks for your patience.

from vscode-flexigpt.

ppipada avatar ppipada commented on July 20, 2024

@Swicegood I have pushed a update to FlexiGPT today. 1.14.0

  • New release also adds support for latest openai/claude/gemini/huggingface/llama.cpp changes.

Hope this solves your requirement.

from vscode-flexigpt.

Swicegood avatar Swicegood commented on July 20, 2024

Thank you for your effort, however I'm still getting:
`[ERROR] AxiosError: {
"type": "error",
"error": {
"type": "not_found_error",
"message": "Not Found"
}
}
404
{
"date": "Wed, 20 Mar 2024 20:15:43 GMT",
"content-type": "application/json",
"transfer-encoding": "chunked",
"connection": "close",
"x-should-retry": "false",
"request-id": "req_01UKsAjdMWoworvxAHfSyBMq",
"x-cloud-trace-context": "aafb1ebd010e813743d008068795f4ef",
"via": "1.1 google",
"cf-cache-status": "DYNAMIC",
"server": "cloudflare",
"cf-ray": "8678603add5505df-IAD"
}

Request failed with status code 404

`

from vscode-flexigpt.

ppipada avatar ppipada commented on July 20, 2024

Can you please paste your settings: default provider, anthropicDefaultChatCompletionModel and anthropicDefaultCompletion model.

Also if possible, please also paste the FullRequest (please delete any visible secrets), this should be available in a dropdown below where you see the request. Same with response.

I myself have tested with Haiku model, but will try to reproduce with Opus based on your info.

from vscode-flexigpt.

Swicegood avatar Swicegood commented on July 20, 2024

Default provider: anthropic
Default Chat Completion Model: claude-3-opus-20240229
Default Completion Model: claude-3-opus-20240229
https://api.anthropic.com
{
"model": "claude-3-opus-20240229",
"prompt": null,
"messages": [
{
"role": "user",
"content": "hello"
}
],
"temperature": 0.1,
"maxTokens": 2048,
"limitContextLength": 2048,
"stream": false
}
Screenshot 2024-03-20 at 10 57 12 PM

from vscode-flexigpt.

ppipada avatar ppipada commented on July 20, 2024

I tried opus too from my end:

Settings:
image

Conversation request:
image

Conversation response:
image

Reasons for your 404 (i.e page not found) for your api request I can guess for rechecking:

One more thing to check: Do you see any errors or suspicious in output window > FlexiGPT in VSCode

from vscode-flexigpt.

Swicegood avatar Swicegood commented on July 20, 2024

Strange. It works with curl and I'm in the US so country should'nt be an issue:
`curl https://api.anthropic.com/v1/messages
--header "x-api-key: $ANTHROPIC_API_KEY"
--header "anthropic-version: 2023-06-01"
--header "content-type: application/json"
--data
'{
"model": "claude-3-opus-20240229",
"max_tokens": 1024,
"messages": [
{"role": "user", "content": "Hello, Claude"}
]
}'

RESPONSE

{"id":"msg_01NnxrmGTfuyVUW8qe9ycU3C","type":"message","role":"assistant","content":[{"type":"text","text":"Hello! It's nice to meet you. How can I assist you today?"}],"model":"claude-3-opus-20240229","stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":10,"output_tokens":19}}% `

UPDATE: This from output appears to be the problem:

"url": "https://api.anthropic.com/v1/messages/v1/messages",
"method": "post",

from vscode-flexigpt.

Swicegood avatar Swicegood commented on July 20, 2024

Ok I changed that (didn't realize it was set one way in user and one way in workspace)
and now it's working. Thank you for your great work on this project!

from vscode-flexigpt.

Related Issues (7)

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.