8000 update gpt to 2024 08 06 model by AndrewBKang · Pull Request #80 · sublayerapp/sublayer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

update gpt to 2024 08 06 model #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Visit [OpenAI](https://openai.com/product) to get an API key.
Usage:
```ruby
Sublayer.configuration.ai_provider = Sublayer::Providers::OpenAI
Sublayer.configuration.ai_model = "gpt-4o"
Sublayer.configuration.ai_model = "gpt-4o-2024-08-06"
```

### Gemini [UNSTABLE]
Expand Down
2 changes: 1 addition & 1 deletion lib/sublayer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Error < StandardError; end
def self.configuration
@configuration ||= OpenStruct.new(
ai_provider: Sublayer::Providers::OpenAI,
ai_model: "gpt-4o",
ai_model: "gpt-4o-2024-08-06",
logger: Sublayer::Logging::NullLogger.new
)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/sublayer/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def create_new_project(project_name)
ai_provider = prompt.select("Select an AI provider:", ["OpenAI", "Claude", "Gemini"])

ai_model = if ai_provider == "OpenAI"
prompt.select("Which OpenAI model would you like to use?", ["gpt-4o", "gpt-4o-mini", "gpt-4-turbo", "gpt-4", "gpt-3.5-turbo"])
prompt.select("Which OpenAI model would you like to use?", ["gpt-4o-2024-08-06", "gpt-4o", "gpt-4o-mini", "gpt-4-turbo", "gpt-4", "gpt-3.5-turbo"])
elsif ai_provider == "Claude"
prompt.select("Which Anthropic model would you like to use?", ["claude-3-5-sonnet-20240620", "claude-3-opus-20240229", "claude-3-haiku-20240307"])
elsif ai_provider == "Gemini"
Expand Down
2 changes: 1 addition & 1 deletion lib/sublayer/providers/open_ai.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Sublayer.configuration.ai_provider = Sublayer::Providers::OpenAI
# Sublayer.configuration.ai_model = "gpt-4o"
# Sublayer.configuration.ai_model = "gpt-4o-2024-08-06"

module Sublayer
module Providers
Expand Down
Loading
0