Comments (8)
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.
@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.
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.
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.
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
}
from vscode-flexigpt.
I tried opus too from my end:
Reasons for your 404 (i.e page not found) for your api request I can guess for rechecking:
- "https://api.anthropic.com" should be accessible from your location for Opus. https://www.anthropic.com/supported-countries
- Your plan in Anthropic console should have access to new models
- Some intermittent issue with api access.
One more thing to check: Do you see any errors or suspicious in output window > FlexiGPT
in VSCode
from vscode-flexigpt.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-flexigpt.