Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
CreatureChat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Public
CreatureChat
Commits
602a402d
Commit
602a402d
authored
May 05, 2024
by
Jonathan Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If a CreatureChat API Key is entered, automatically update the URL to the creaturechat API.
parent
635e9dec
Pipeline
#12110
passed with stage
in 22 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
ConfigurationHandler.java
...ain/java/com/owlmaddie/commands/ConfigurationHandler.java
+7
-1
No files found.
src/main/java/com/owlmaddie/commands/ConfigurationHandler.java
View file @
602a402d
...
...
@@ -63,7 +63,13 @@ public class ConfigurationHandler {
// Getters and setters for existing fields
public
String
getApiKey
()
{
return
apiKey
;
}
public
void
setApiKey
(
String
apiKey
)
{
this
.
apiKey
=
apiKey
;
}
public
void
setApiKey
(
String
apiKey
)
{
// Update URL if a CreatureChat API key is detected
if
(
apiKey
.
startsWith
(
"cc_"
)
&&
apiKey
.
length
()
==
15
)
{
setUrl
(
"https://api.creaturechat.com/v1/chat/completions"
);
}
this
.
apiKey
=
apiKey
;
}
public
String
getUrl
()
{
return
url
;
}
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment